Exemplo n.º 1
0
 public override int GetHashCode()
 {
     return(AbsoluteUri?.GetHashCode() ?? 0
            ^ CollectionPropertyName?.GetHashCode() ?? 0
            ^ StartingIndex.GetHashCode()
            ^ Count.GetHashCode());
 }
Exemplo n.º 2
0
 public override int GetHashCode()
 {
     return(AbsoluteUri.GetHashCode());
 }
Exemplo n.º 3
0
 public override int GetHashCode()
 {
     return(AbsoluteUri?.GetHashCode() ?? 0
            ^ NewValue?.GetHashCode() ?? 0
            ^ PropertyName?.GetHashCode() ?? 0);
 }
Exemplo n.º 4
0
 public override int GetHashCode()
 {
     return(AbsoluteUri?.GetHashCode() ?? 0
            ^ ReferenceUri?.GetHashCode() ?? 0
            ^ PropertyName?.GetHashCode() ?? 0);
 }
Exemplo n.º 5
0
 public override int GetHashCode()
 {
     return((AbsoluteUri != null) ? AbsoluteUri.GetHashCode() : base.GetHashCode());
 }
Exemplo n.º 6
0
        public void op_GetHashCode()
        {
            var obj = new AbsoluteUri("http://example.com/");

            var expected = obj.ToString().GetHashCode();
            var actual = obj.GetHashCode();

            Assert.Equal(expected, actual);
        }