示例#1
0
    [Test] public void PassByValue()
    {
        S a = done.Via();
        S b = a;

        o(a, b);
        o(b, a);
        o(a.Equals(b));
        o(b.Equals(a));
        o(!Object.ReferenceEquals(a, b));
    }
示例#2
0
 bool Equals(S exp, S value)
 {
     if (exp.Equals(value) == false)
     {
         return(false);
     }
     else if ((exp == value) == false)
     {
         return(false);
     }
     else if ((exp != value) == true)
     {
         return(false);
     }
     return(true);
 }