public void CopyTo(GenericParameterConstraintCollection copy)
 {
     foreach (var item in this)
     {
         copy.Add(item);
     }
 }
 public virtual void Visit(GenericParameterConstraintCollection constraints)
 {
     for (int i = 0; i < constraints.Count; i++)
     {
         Visit(constraints[i]);
     }
 }
Example #3
0
 public virtual void Build(GenericParameterConstraintCollection constraints)
 {
     for (int i = 0; i < constraints.Count; i++)
     {
         var constraint = constraints[i];
         if (Build(ref constraint))
         {
             constraints[i] = constraint;
         }
     }
 }