public override ICollection <Type> GetKnownTypes([Optional] Container container) { Console.WriteLine("Member Expression Node KnownType"); var totalTypes = base.GetKnownTypes(container).Concat(new Type[] { this.GetType(), Member?.GetType() }) .Concat(Member?.GetKnownTypes(container) ?? Enumerable.Empty <Type>()) .Concat(MExpression?.GetKnownTypes(container) ?? Enumerable.Empty <Type>()) .ToList(); return(totalTypes); }
public override Expression FromNode([Optional] Container container) { Console.WriteLine(NodeType); return(Expression.MakeMemberAccess(MExpression.FromNode(container), Member.FromNode(container))); }