Interface ITypeFinder
- Namespace
- Utils.Expressions
- Assembly
- Utils.dll
Provides methods for finding types and extension methods at runtime.
public interface ITypeFinder
- Extension Methods
Methods
FindExtensionMethods(Type, string)
Searches for extension methods applicable to the specified extended type.
MethodInfo[] FindExtensionMethods(Type extendedType, string name)
Parameters
extendedTypeTypeThe Type being extended by the extension methods.
namestringThe name of the method(s) to find.
Returns
- MethodInfo[]
An array of MethodInfo objects representing the found extension methods.
FindType(string, Type[])
Attempts to locate a type by name, optionally applying generic arguments if needed.
Type FindType(string name, Type[] genericArguments)
Parameters
namestringThe name of the type to find (can include namespace).
genericArgumentsType[]Generic type arguments to apply if the type is generic.