Equals() public méthode

public Equals ( object value ) : bool
value object
Résultat bool
Exemple #1
0
 static new public int Equals(IntPtr l)
 {
     try {
         System.Text.UTF8Encoding self = (System.Text.UTF8Encoding)checkSelf(l);
         System.Object            a1;
         checkType(l, 2, out a1);
         var ret = self.Equals(a1);
         pushValue(l, true);
         pushValue(l, ret);
         return(2);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
Exemple #2
0
 public void PosTest2()
 {
     UTF8Encoding utf8a = new UTF8Encoding();
     UTF8Encoding utf8b = new UTF8Encoding();
     Assert.True(utf8a.Equals(utf8b));
 }
Exemple #3
0
 public void PosTest3()
 {
     UTF8Encoding utf8a = new UTF8Encoding();
     UTF8Encoding utf8b = new UTF8Encoding(true);
     Assert.False(utf8a.Equals(utf8b));
 }
Exemple #4
0
 public void PosTest1()
 {
     UTF8Encoding utf8 = new UTF8Encoding();
     Assert.True(utf8.Equals(utf8));
 }