コード例 #1
0
 public bool Equals(SettingsStructProperties other) => SampleString == other.SampleString &&
 SampleInt8 == other.SampleInt8 &&
 SampleInt16 == other.SampleInt16 &&
 SampleInt32 == other.SampleInt32 &&
 SampleInt64 == other.SampleInt64 &&
 SampleUInt8 == other.SampleUInt8 &&
 SampleUInt16 == other.SampleUInt16 &&
 SampleUInt32 == other.SampleUInt32 &&
 SampleUInt64 == other.SampleUInt64 &&
 SampleFloat.Equals(other.SampleFloat) &&
 SampleDouble.Equals(other.SampleDouble) &&
 SampleDecimal == other.SampleDecimal &&
 SampleBool == other.SampleBool &&
 SampleDateTime.Equals(other.SampleDateTime) &&
 SampleTimeSpan.Equals(other.SampleTimeSpan) &&
 SampleEnum == other.SampleEnum &&
 SampleFlagEnum == other.SampleFlagEnum &&
 SampleNullableUInt32 == other.SampleNullableUInt32;
コード例 #2
0
 public bool Equals(SettingsObjectProperties other)
 {
     if (ReferenceEquals(null, other))
     {
         return(false);
     }
     if (ReferenceEquals(this, other))
     {
         return(true);
     }
     return(SampleString == other.SampleString && SampleInt8 == other.SampleInt8 &&
            SampleInt16 == other.SampleInt16 && SampleInt32 == other.SampleInt32 &&
            SampleInt64 == other.SampleInt64 && SampleUInt8 == other.SampleUInt8 &&
            SampleUInt16 == other.SampleUInt16 && SampleUInt32 == other.SampleUInt32 &&
            SampleUInt64 == other.SampleUInt64 && SampleFloat.Equals(other.SampleFloat) &&
            SampleDouble.Equals(other.SampleDouble) && SampleDecimal == other.SampleDecimal &&
            SampleBool == other.SampleBool && SampleDateTime.Equals(other.SampleDateTime) &&
            SampleTimeSpan.Equals(other.SampleTimeSpan) && SampleEnum == other.SampleEnum &&
            SampleFlagEnum == other.SampleFlagEnum && SampleNullableUInt32 == other.SampleNullableUInt32);
 }