Exemple #1
0
        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)));
        }
Exemple #2
0
 /// <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);
 }
Exemple #3
0
 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);
 }
Exemple #4
0
 public static MatchFields <In, Out> IncludeProperties <In, Out>(
     this MatchFields <In, Out> that)
 {
     that.Properties = true;
     return(that);
 }
Exemple #5
0
 public static MatchFields <In, Out> IncludeFields <In, Out>(
     this MatchFields <In, Out> that)
 {
     that.Fields = true;
     return(that);
 }