Пример #1
0
 /// <summary>
 /// Returns hash code for this object. For more information on this implementation see:
 /// Jon Skeet's answer on http://stackoverflow.com/questions/263400
 /// </summary>
 /// <returns>Hash code.</returns>
 public override int GetHashCode()
 {
     unchecked
     {
         int hash = 17;
         hash = hash * 23 + ElementId.GetHashCode();
         hash = hash * 23 + ElementTypeId.GetHashCode();
         return(hash);
     }
 }
 /// <inheritdoc/>
 public override byte[] GetBytes()
 {
     // !!!!Caution: keep the order of the following code lines!!!!
     return(GetBytes(ParticleType.Bytes(),
                     ElementTypeId.Bytes(),
                     MinOccurs.Bytes(),
                     MaxOccurs.Bytes(),
                     ChildrenCount.Bytes(),
                     ChildrenStartIndex.Bytes()));
 }