Пример #1
0
 /// <inheritdoc />
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = ArrayDepth;
         hashCode = (hashCode * 397) ^ (ClassName?.GetHashCode() ?? 0);
         hashCode = (hashCode * 397) ^ (PrimitiveType?.GetHashCode() ?? 0);
         return(hashCode);
     }
 }
Пример #2
0
 public bool Equals(ClassName other)
 {
     return(Name == other.Name);
 }
Пример #3
0
 /// <summary>
 /// Creates class type descriptor
 /// </summary>
 /// <param name="className">Class</param>
 /// <param name="arrayDepth">Array depth</param>
 public TypeDescriptor(ClassName className, int arrayDepth)
 {
     ArrayDepth = arrayDepth;
     ClassName  = className ?? throw new ArgumentNullException(nameof(className));
 }
Пример #4
0
 private bool Equals(ClassName other)
 {
     return(Name == other.Name);
 }