Mono.CSharp.TypeManager.IsInstantiationOfSameGenericType C# (CSharp) Méthode

IsInstantiationOfSameGenericType() public static méthode

Check whether `type' and `parent' are both instantiations of the same generic type. Note that we do not check the type parameters here.
public static IsInstantiationOfSameGenericType ( System.TypeSpec type, System.TypeSpec parent ) : bool
type System.TypeSpec
parent System.TypeSpec
Résultat bool
	public static bool IsInstantiationOfSameGenericType (TypeSpec type, TypeSpec parent)
	{
		return type == parent || type.MemberDefinition == parent.MemberDefinition;
	}