public static T Fields <T, In, Out>(this MatchCollector <T, In, Out> that, Action <MatchFields <In, Out> > fields) { var m = new MatchFields <In, Out>(); m.Fields = true; fields(m); return(that.Add(new SwitchMatchFields <In, Out>(m.Funcs.ToArray(), m.TypeOfFields))); }
/// <summary> /// /// </summary> public static MatchFields <In, Out> IncludeAll <In, Out>( this MatchFields <In, Out> that) { that.Methods = true; that.Fields = true; that.Properties = true; return(that); }
public static MatchFields <In, Out> Case <T, T2, T3, T4, T5, T6, In, Out>( this MatchFields <In, Out> that, Func <T, T2, T3, T4, T5, T6, Out> func) { that.Add(func); return(that); }
public static MatchFields <In, Out> IncludeProperties <In, Out>( this MatchFields <In, Out> that) { that.Properties = true; return(that); }
public static MatchFields <In, Out> IncludeFields <In, Out>( this MatchFields <In, Out> that) { that.Fields = true; return(that); }