GetHashCode() public method

public GetHashCode ( ) : int
return int
Exemplo n.º 1
0
 public void PosTest2()
 {
     UTF8Encoding utf8a = new UTF8Encoding(true);
     UTF8Encoding utf8b = new UTF8Encoding(true, true);
     Assert.NotEqual(utf8a.GetHashCode(), utf8b.GetHashCode());
 }
Exemplo n.º 2
0
 public void PosTest1()
 {
     UTF8Encoding utf8a = new UTF8Encoding();
     UTF8Encoding utf8b = utf8a;
     Assert.Equal(utf8a.GetHashCode(), utf8b.GetHashCode());
 }