示例#1
0
    public override int GetHashCode()
    {
        unchecked
        {
            var hashCode = TypeFullyQualified.GetHashCode();
            hashCode = (hashCode * 397) ^ IsReferenceType.GetHashCode();
            hashCode = (hashCode * 397) ^ AttributeInfo.GetHashCode();
            hashCode = (hashCode * 397) ^ Settings.GetHashCode();
            hashCode = (hashCode * 397) ^ EqualityMembers.ComputeHashCode();
            hashCode = (hashCode * 397) ^ AssignableInstanceFieldsAndProperties.ComputeHashCode();

            return(hashCode);
        }
    }
示例#2
0
 public override int GetHashCode()
 {
     unchecked {
         int hashCode = m_texcoord0Size;
         hashCode = (hashCode * 397) ^ m_texcoord1Size;
         hashCode = (hashCode * 397) ^ m_texcoord2Size;
         hashCode = (hashCode * 397) ^ m_texcoord3Size;
         hashCode = (hashCode * 397) ^ PositionInfo.GetHashCode();
         hashCode = (hashCode * 397) ^ NormalInfo.GetHashCode();
         hashCode = (hashCode * 397) ^ ColorInfo.GetHashCode();
         hashCode = (hashCode * 397) ^ TangentInfo.GetHashCode();
         hashCode = (hashCode * 397) ^ PackVertexIdIntoTexcoord1W.GetHashCode();
         return(hashCode);
     }
 }