/// <summary> /// Creates a constraint that combines a constraint with other constraints. /// </summary> /// <param name="constraint">The constraint to combine</param> /// <param name="others">The other constraints</param> /// <returns>The aggregate constraint</returns> public static IInspectorConstraint Combine(IInspectorConstraint constraint, params IInspectorConstraint[] others) { return(new CombineConstraint(constraint, others)); }
public CombineConstraint(IInspectorConstraint constraint, params IInspectorConstraint[] others) { m_Constraint = constraint; m_Others = others ?? Array.Empty <IInspectorConstraint>(); }