Equals() public method

public Equals ( object value ) : bool
value object
return bool
Example #1
0
 public void PosTest3()
 {
     UnicodeEncoding uEncoding = new UnicodeEncoding();
     bool actualValue;
     actualValue = uEncoding.Equals(new TimeSpan());
     Assert.False(actualValue);
 }
Example #2
0
 public void PosTest1()
 {
     UnicodeEncoding uEncoding1 = new UnicodeEncoding();
     UnicodeEncoding uEncoding2 = new UnicodeEncoding(false, true);
     bool actualValue;
     actualValue = uEncoding1.Equals(uEncoding2);
     Assert.True(actualValue);
 }
 static new public int Equals(IntPtr l)
 {
     try {
         System.Text.UnicodeEncoding self = (System.Text.UnicodeEncoding)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));
     }
 }