public void AddMember <TFor>(Func <TData, TFor> selector, IMemberGenerator generator) { var result = generator.Create(Decleration, selector(Data), IsDesignerFile); if (result != null) { Decleration.Members.Add(result); } }
public void AddMember(IMemberGenerator generator) { var result = generator.Create(Decleration, Data, IsDesignerFile); if (result != null) { Decleration.Members.Add(result); } }
public void AddMembers<TFor>(Func<TData, IEnumerable<TFor>> selector, IMemberGenerator generator) { foreach (var item in selector(Data)) { var result = generator.Create(Decleration, item, IsDesignerFile); if (result != null) Decleration.Members.Add(result); } }