コード例 #1
0
 public bool Equals(TestWrapper other)
 {
     if (ReferenceEquals(null, other))
     {
         return(false);
     }
     if (ReferenceEquals(this, other))
     {
         return(true);
     }
     return(Equals(other.mBase, mBase));
 }
コード例 #2
0
 public bool Equals(TestWrapper other)
 {
     if (ReferenceEquals(null, other))
     {
         return false;
     }
     if (ReferenceEquals(this, other))
     {
         return true;
     }
     return Equals(other.mBase, mBase);
 }
コード例 #3
0
 /// <summary>
 ///   Unwraps a <see cref = "TestWrapper" /> into a <see cref = "TestBase" />.
 /// </summary>
 private static TestBase _Unwrap(TestWrapper arg)
 {
     return(arg.Base);
 }
コード例 #4
0
 /// <summary>
 ///   Unwraps a <see cref = "TestWrapper" /> into a <see cref = "TestBase" />.
 /// </summary>
 private static TestBase _Unwrap(TestWrapper arg)
 {
     return arg.Base;
 }