private ElementInit GetElementInit(ElementInitDto obj) { if (this.elementInits.ContainsKey(obj)) { return(this.elementInits[obj]); } var res = Expression.ElementInit(obj.AddMethod, ListSelect(obj.Arguments, Visit)); this.elementInits.Add(obj, res); return(res); }
private ElementInitDto GetElementInit(ElementInit obj) { if (this.elementInits.ContainsKey(obj)) { return(this.elementInits[obj]); } var res = new ElementInitDto { AddMethod = obj.AddMethod, Arguments = ListSelect(obj.Arguments, Visit) }; this.elementInits.Add(obj, res); return(res); }