示例#1
0
 private bool Equals([NotNull] Age other)
 {
     return(Years == other.Years && Months == other.Months && Days == other.Days && Hours == other.Hours && Minutes == other.Minutes && Seconds == other.Seconds);
 }
示例#2
0
 public Face(int x, int y, int width, int height, [CanBeNull] string name = null, [CanBeNull] Age age = null)
 {
     X      = x;
     Y      = y;
     Width  = width;
     Height = height;
     Name   = name;
     Age    = age;
 }
 private bool Equals(Age other)
 {
     return Years == other.Years && Months == other.Months && Days == other.Days && Hours == other.Hours && Minutes == other.Minutes && Seconds == other.Seconds;
 }