示例#1
0
 private void Comp()
 {
     if (SomeObject1.Equals(SomeObject2))
     {
         Console.WriteLine("We are the same!");
     }
     else
     {
         Console.WriteLine("We are similar, but not the same object!");
     }
 }
示例#2
0
 private void Ident()
 {
     Console.WriteLine(SomeObject1.ToString());
     Console.WriteLine(SomeObject2.ToString());
 }