Mono.CSharp.TypeManager.IsInstantiationOfSameGenericType C# (CSharp) Method

IsInstantiationOfSameGenericType() public static method

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
return bool
	public static bool IsInstantiationOfSameGenericType (TypeSpec type, TypeSpec parent)
	{
		return type == parent || type.MemberDefinition == parent.MemberDefinition;
	}