Beispiel #1
0
        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);
            }
        }
Beispiel #2
0
        public void AddMember(IMemberGenerator generator)
        {
            var result = generator.Create(Decleration, Data, IsDesignerFile);

            if (result != null)
            {
                Decleration.Members.Add(result);
            }
        }
Beispiel #3
0
 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);
     }
 }