public ElementDescriptor(ElementDescriptorType type, int templateCode, JObject properties, ConstraintSet constraints) { Type = type; TemplateCode = templateCode; Properties = properties; Constraints = constraints; }
private bool Equals(ConstraintSet other) { return(_constraints.Count == other._constraints.Count && !_constraints.Except(other._constraints).Any()); }