public static IEnumerable <object> CreateObject <T>(string name) { var type = typeof(T); var member = type.GetMember(name).FirstOrDefault(); if (member == null) { return(null); } var profile = new MemberProfile(member); profile.SetInstance(); return(profile.CreateObject().Objects); }