public ClassFromList(List <string> list) { var type = new DynamicClass().Builder; list.ForEach(item => new DynamicProperty <T>(type, item)); Instance = Activator.CreateInstance(type.CreateType()); }
public ClassFromList(List <string> list) { var type = new DynamicClass().Builder; list.ForEach(item => new DynamicProperty <T>(type, item)); Type = type.CreateType(); }