Exemple #1
0
 /// <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));
 }
Exemple #2
0
 public CombineConstraint(IInspectorConstraint constraint, params IInspectorConstraint[] others)
 {
     m_Constraint = constraint;
     m_Others     = others ?? Array.Empty <IInspectorConstraint>();
 }