public static IEnumerable <ParameterBase> ToParameters(this TableFilterLine tableFilterLine) { yield return(new SimpleParameter("FieldName", tableFilterLine.FieldName)); yield return(new SimpleParameter("Type", tableFilterLine.Type)); yield return(new SimpleParameter("Value", tableFilterLine.Value)); }
public static Invocation ToInvocation(this TableFilterLine tableFilterLine) => new Invocation("New-CBreezeFilter", tableFilterLine.ToParameters());