Mono.Cecil.MetadataResolver.AreSame C# (CSharp) Méthode

AreSame() static private méthode

static private AreSame ( Mono.Cecil.ArrayType a, Mono.Cecil.ArrayType b ) : bool
a Mono.Cecil.ArrayType
b Mono.Cecil.ArrayType
Résultat bool
		static bool AreSame (ArrayType a, ArrayType b)
		{
			if (a.Rank != b.Rank)
				return false;

			// TODO: dimensions

			return true;
		}

Same methods

MetadataResolver::AreSame ( Collection a, Collection b ) : bool
MetadataResolver::AreSame ( Mono.Cecil.GenericInstanceType a, Mono.Cecil.GenericInstanceType b ) : bool
MetadataResolver::AreSame ( Mono.Cecil.GenericParameter a, Mono.Cecil.GenericParameter b ) : bool
MetadataResolver::AreSame ( IModifierType a, IModifierType b ) : bool
MetadataResolver::AreSame ( TypeReference a, TypeReference b ) : bool
MetadataResolver::AreSame ( Mono.Cecil.TypeSpecification a, Mono.Cecil.TypeSpecification b ) : bool

Usage Example

 private static bool AreSame(TypeReference a, TypeReference b)
 {
     if (a == b)
     {
         return(true);
     }
     if (a == null || b == null)
     {
         return(false);
     }
     if (a.etype != b.etype)
     {
         return(false);
     }
     if (a.IsGenericParameter)
     {
         return(MetadataResolver.AreSame((GenericParameter)a, (GenericParameter)b));
     }
     if (a.IsTypeSpecification())
     {
         return(MetadataResolver.AreSame((TypeSpecification)a, (TypeSpecification)b));
     }
     if (a.Name != b.Name || a.Namespace != b.Namespace)
     {
         return(false);
     }
     return(MetadataResolver.AreSame(a.DeclaringType, b.DeclaringType));
 }
All Usage Examples Of Mono.Cecil.MetadataResolver::AreSame