/// <inheritdoc /> public override int GetHashCode() { unchecked { var hashCode = ArrayDepth; hashCode = (hashCode * 397) ^ (ClassName?.GetHashCode() ?? 0); hashCode = (hashCode * 397) ^ (PrimitiveType?.GetHashCode() ?? 0); return(hashCode); } }
public bool Equals(ClassName other) { return(Name == other.Name); }
/// <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)); }
private bool Equals(ClassName other) { return(Name == other.Name); }