예제 #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());
 }