Table of Contents

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

extendedType Type

The Type being extended by the extension methods.

name string

The 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

name string

The name of the type to find (can include namespace).

genericArguments Type[]

Generic type arguments to apply if the type is generic.

Returns

Type

A Type object if found; otherwise null.