示例#1
0
 int ISupportsInterning.GetHashCodeForInterning()
 {
     unchecked
     {
         return(33 * assembly.GetHashCode() + fullTypeName.GetHashCode());
     }
 }
示例#2
0
 public override int GetHashCode()
 {
     unchecked
     {
         int hashCode = (TypeName != null ? TypeName.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (NamespaceName != null ? NamespaceName.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (FullTypeName != null ? FullTypeName.GetHashCode() : 0);
         return(hashCode);
     }
 }
示例#3
0
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = (int)TypeEnum;
         hashCode = (hashCode * 397) ^ (TypeName != null ? TypeName.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (NamespaceName != null ? NamespaceName.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (GenericArguments != null ? GenericArguments.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Attributes != null ? Attributes.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (FullTypeName != null ? FullTypeName.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (ImplementedInterfaces != null ? ImplementedInterfaces.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Fields != null ? Fields.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Methods != null ? Methods.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Properties != null ? Properties.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Indexers != null ? Indexers.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Events != null ? Events.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Constructors != null ? Constructors.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (NestedTypes != null ? NestedTypes.GetHashCode() : 0);
         return(hashCode);
     }
 }
示例#4
0
 public override int GetHashCode()
 {
     return((namespaceKnown ? 812571 : 12651) ^ fullTypeName.GetHashCode());
 }
示例#5
0
 /// <summary>
 /// </summary>
 /// <returns> </returns>
 public override int GetHashCode()
 {
     return(FullTypeName.GetHashCode());
 }