コード例 #1
0
 public override bool Equals(object obj)
 {
     if (obj == null)
     {
         return(false);
     }
     if (GetType() == obj.GetType() && obj is MotionSensorSample other)
     {
         if (SampleId == other.SampleId &&
             Acc.Equals(other.Acc) &&
             Gyro.Equals(other.Gyro))
         {
             return(true);
         }
     }
     return(false);
 }