C# Class System.Linq.Expressions.Tests.TypeExtensions

Afficher le fichier Open project: dotnet/corefx

Méthodes publiques

Méthode Description
GetConstructor ( this _this, Type types ) : ConstructorInfo

Private Methods

Méthode Description
AreEquivalent ( Type t1, Type t2 ) : bool
AreReferenceAssignable ( Type dest, Type src ) : bool
GetAnyStaticMethodValidated ( this type, string name, Type types ) : MethodInfo
GetReturnType ( this mi ) : Type
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.

Method Details

GetConstructor() public static méthode

public static GetConstructor ( this _this, Type types ) : ConstructorInfo
_this this
types Type
Résultat System.Reflection.ConstructorInfo