Beispiel #1
0
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = (Instance != null ? Instance.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (XamlType != null ? XamlType.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (XamlMember != null ? XamlMember.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ IsGetObject.GetHashCode();
         hashCode = (hashCode * 397) ^ (Collection != null ? Collection.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (CtorArguments != null ? CtorArguments.GetHashCode() : 0);
         return(hashCode);
     }
 }
 public void CopyTo(CustomAttribute copy)
 {
     copy._constructor = _constructor;
     CtorArguments.CopyTo(copy.CtorArguments);
     NamedArguments.CopyTo(copy.NamedArguments);
 }