C# Класс System.Dynamic.Utils.TypeExtensions

Показать файл Открыть проект

Открытые методы

Метод Описание
GetAnyStaticMethodValidated ( this type, string name, Type types ) : MethodInfo

Returns the matching method if the parameter types are reference assignable from the provided type arguments, otherwise null.

GetReturnType ( this mi ) : Type
GetTypeCode ( this type ) : TypeCode

Приватные методы

Метод Описание
GetParametersCached ( this method ) : System.Reflection.ParameterInfo[]
IsByRefParameter ( this pi ) : bool
MatchesArgumentTypes ( this mi, Type argTypes ) : bool

Returns true if the method's parameter types are reference assignable from the argument types, otherwise false. An example that can make the method return false is that typeof(double).GetMethod("op_Equality", ..., new[] { typeof(double), typeof(int) }) returns a method with two double parameters, which doesn't match the provided argument types.

Описание методов

GetAnyStaticMethodValidated() публичный статический Метод

Returns the matching method if the parameter types are reference assignable from the provided type arguments, otherwise null.
public static GetAnyStaticMethodValidated ( this type, string name, Type types ) : MethodInfo
type this
name string
types Type
Результат System.Reflection.MethodInfo

GetReturnType() публичный статический Метод

public static GetReturnType ( this mi ) : Type
mi this
Результат Type

GetTypeCode() публичный статический Метод

public static GetTypeCode ( this type ) : TypeCode
type this
Результат TypeCode