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