public bool Equals(IConstructorInfoCache <TAtt, TArg> x, IConstructorInfoCache <TAtt, TArg> y)
 {
     if (x == null && y == null)
     {
         return(true);
     }
     if (x == null || y == null)
     {
         return(false);
     }
     return(x.MethodName != y.MethodName);
 }
 public int Compare(IConstructorInfoCache <TAtt, TArg> x, IConstructorInfoCache <TAtt, TArg> y)
 {
     if (x == null)
     {
         return(-1);
     }
     if (y == null)
     {
         return(+1);
     }
     return(string.Compare(x.MethodName, y.MethodName, StringComparison.Ordinal));
 }
 public bool Equals(IConstructorInfoCache <AttributeInfoCache, MethodArgsInfoCache <AttributeInfoCache> > other)
 {
     return
         (new ConstructorInfoCacheEquatableComparer <AttributeInfoCache, MethodArgsInfoCache <AttributeInfoCache> >().Equals(
              this, other));
 }
#pragma warning disable CS1591
        public int CompareTo(IConstructorInfoCache <AttributeInfoCache, MethodArgsInfoCache <AttributeInfoCache> > other)
        {
            return
                (new ConstructorInfoCacheEquatableComparer <AttributeInfoCache, MethodArgsInfoCache <AttributeInfoCache> >().Compare(
                     this, other));
        }
Exemplo n.º 5
0
 public bool Equals(IConstructorInfoCache <TAtt, TArg> other)
 {
     return(new ConstructorInfoCacheEquatableComparer <TAtt, TArg>().Equals(this, other));
 }
Exemplo n.º 6
0
#pragma warning disable CS1591
        public int CompareTo(IConstructorInfoCache <TAtt, TArg> other)
        {
            return(new ConstructorInfoCacheEquatableComparer <TAtt, TArg>().Compare(this, other));
        }
 public int GetHashCode(IConstructorInfoCache <TAtt, TArg> obj)
 {
     return(obj.MethodInfo.GetHashCode());
 }