示例#1
0
 /// <summary>Serves as the default hash function.</summary>
 /// <returns>Type: <see cref="System.Int32" />
 /// A hash code for the current object.</returns>
 public override int GetHashCode()
 {
     return(typeof(Alias).FullName.GetHashCode() ^ (_component != null ? _component.GetHashCode() : 0) ^ (_name != null ? _name.GetHashCode() : 0));
 }
 /// <summary>Serves as the default hash function.</summary>
 /// <returns>Type: <see cref="System.Int32" />
 /// A hash code for the current object.</returns>
 public override int GetHashCode()
 {
     return(_component.GetHashCode());
 }