示例#1
0
 /// <inheritdoc />
 public override int GetHashCode()
 {
     unchecked {
         var hashCode = Offset.GetHashCode();
         hashCode = (hashCode * 397) ^ MessageVersion.GetHashCode();
         hashCode = (hashCode * 397) ^ Attribute.GetHashCode();
         hashCode = (hashCode * 397) ^ Key.Count.GetHashCode();
         hashCode = (hashCode * 397) ^ Value.Count.GetHashCode();
         hashCode = (hashCode * 397) ^ Timestamp.GetHashCode();
         return(hashCode);
     }
 }
示例#2
0
 /// <inheritdoc />
 public override int GetHashCode()
 {
     unchecked {
         var hashCode = Offset.GetHashCode();
         hashCode = (hashCode * 397) ^ PartitionId;
         hashCode = (hashCode * 397) ^ MessageVersion.GetHashCode();
         hashCode = (hashCode * 397) ^ Attribute.GetHashCode();
         hashCode = (hashCode * 397) ^ (Key?.GetHashCode() ?? 0);
         hashCode = (hashCode * 397) ^ (Value?.GetHashCode() ?? 0);
         hashCode = (hashCode * 397) ^ Timestamp.GetHashCode();
         return(hashCode);
     }
 }
示例#3
0
        public override int GetHashCode()
        {
            int result = Id.GetHashCode();

            result ^= Name.GetHashCode();
            result ^= MessageFrom.GetHashCode();
            result ^= MessageId.GetHashCode();
            result ^= MessagePassword.GetHashCode();
            result ^= MessageTo.GetHashCode();
            result ^= MessageTest.GetHashCode();
            result ^= MessageVersion.GetHashCode();
            result ^= ReceiveDirectory.GetHashCode();
            result ^= ReceiveDirectoryError.GetHashCode();
            result ^= ReceiveDirectoryError.GetHashCode();
            result ^= ReceiveDirectorySave.GetHashCode();
            result ^= SendDirectory.GetHashCode();

            return(result);
        }
示例#4
0
    static void Main(string[] args)
    {
        // <Snippet0>
        MessageVersion msgVersion = MessageVersion.Default;
        // </Snippet0>


        // <Snippet1>
        AddressingVersion addrVersion = msgVersion.Addressing;
        // </Snippet1>

        // <Snippet2>
        EnvelopeVersion envVersion = msgVersion.Envelope;

        // </Snippet2>

        // <Snippet3>
        msgVersion.ToString();
        // </Snippet3>

        // <Snippet4>
        MessageVersion msgVersion2 = MessageVersion.None;

        // </Snippet4>

        // <Snippet5>
        msgVersion = MessageVersion.Soap11;
        // </Snippet5>

        // <Snippet6>
        msgVersion = MessageVersion.Soap11WSAddressing10;
        // </Snippet6>

        // <Snippet7>
        msgVersion = MessageVersion.Soap11WSAddressingAugust2004;
        // </Snippet7>

        // <Snippet8>
        msgVersion = MessageVersion.Soap12;
        // </Snippet8>

        // <Snippet9>
        msgVersion = MessageVersion.Soap12WSAddressing10;
        // </Snippet9>

        // <Snippet10>
        msgVersion = MessageVersion.Soap12WSAddressingAugust2004;
        // </Snippet10>

        // <Snippet11>
        msgVersion = MessageVersion.CreateVersion(envVersion);
        // </Snippet11>

        // <Snippet12>
        msgVersion = MessageVersion.CreateVersion(envVersion, addrVersion);
        // </Snippet12>

        // <Snippet13>
        msgVersion.Equals(msgVersion2);
        // </Snippet13>

        // <Snippet14>
        msgVersion.GetHashCode();
        // </Snippet14>
    }