Beispiel #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);
        }
Beispiel #2
0
 public static Ex Flatten(this TEx ex) => FlattenVisitor.Flatten(ex);
Beispiel #3
0
 public static Ex Flatten(this Ex ex, bool reduceMethod = true) => FlattenVisitor.Flatten(ex, reduceMethod);