com.stansassets.foundation
com.stansassets.foundation copied to clipboard
feat: extended 'FindImplementationsOf'
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
- move
GetAssemblies()
to dedicated method - extend
HasDefaultConstructor
and move them toTypeExtensions
- 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