예제 #1
0
        public static Ex Flatten(Ex ex, bool reduceMethod = true, bool reduceField = true)
        {
            var fv = new FlattenVisitor(reduceMethod, reduceField);

            ex = fv.Visit(ex);
            return(ex);
        }
예제 #2
0
 public static Ex Flatten(this TEx ex) => FlattenVisitor.Flatten(ex);
예제 #3
0
 public static Ex Flatten(this Ex ex, bool reduceMethod = true) => FlattenVisitor.Flatten(ex, reduceMethod);