Пример #1
0
 public override int GetHashCode()
 {
     if (!_hashComputed)
     {
         _hashCode     = ((DefinedInAssemblyIdentity?.ToString() ?? string.Empty) + (MemberDocId ?? string.Empty) + IsPrimitive.ToString()).GetHashCode() ^ CallingAssembly.GetHashCode();
         _hashComputed = true;
     }
     return(_hashCode);
 }
Пример #2
0
        public override int GetHashCode()
        {
            if (!_hashComputed)
            {
                _hashCode     = ((DefinedInAssemblyIdentity?.ToString() ?? string.Empty) + (MemberDocId ?? string.Empty) + IsPrimitive.ToString((IFormatProvider)CultureInfo.InvariantCulture)).GetHashCode() ^ CallingAssembly.GetHashCode();
                _hashComputed = true;
            }

            return(_hashCode);
        }