com.stansassets.foundation icon indicating copy to clipboard operation
com.stansassets.foundation copied to clipboard

feat: extended 'FindImplementationsOf'

Open vdenysiuk-sa opened this issue 2 years ago • 1 comments

Purpose of this PR

Some times we need to find all implementations of interfaces provided by Unity team. We need to find only custom implementations ignoring built-In ones. In this pull-request 'FindImplementationsOf' method is extended to ignore 'UnityEngine', 'UnityEditor', 'Unity.' and 'System' assemblies

Testing status

  • No tests have been added.

Manual testing status

Tested manually is scope of com.stansassets.build project

vdenysiuk-sa avatar Aug 02 '21 07:08 vdenysiuk-sa

  • move GetAssemblies() to dedicated method
  • extend HasDefaultConstructor and move them to TypeExtensions
    • based on https://stackoverflow.com/questions/4681031/how-do-i-check-if-a-type-provides-a-parameterless-constructor
  • add querying for methods with custom attribute

aleh-patseyeu avatar Jan 21 '22 14:01 aleh-patseyeu