Exemplo n.º 1
0
 public static bool EqualsByValue(this IMixin self, IMixin other)
 {
     return
         (self == null && other == null) ||
         (self != null && other != null &&
         self.GetMembers().Count() == other.GetMembers().Count() &&
         self.GetMembers().All(name => Equals(self.GetProperty(name), other.GetProperty(name))));
 }