Пример #1
0
 public ElementDescriptor(ElementDescriptorType type, int templateCode, JObject properties, ConstraintSet constraints)
 {
     Type         = type;
     TemplateCode = templateCode;
     Properties   = properties;
     Constraints  = constraints;
 }
Пример #2
0
 private bool Equals(ConstraintSet other)
 {
     return(_constraints.Count == other._constraints.Count && !_constraints.Except(other._constraints).Any());
 }