public static IEnumerable <TValue> GetStartFields <TValue>(this Assembly assembly, string className) { if (assembly == null) { throw new ArgumentNullException(nameof(assembly)); } return(StartClassInfo.FindStartFields <TValue>(StartClassInfo.Get(assembly).GetByName(className))); }
public static IEnumerable <TValue> GetStartFields <TValue>(string className) { return(StartClassInfo.FindStartFields <TValue>(DescribeAssemblies().SelectMany(a => a.GetStartClasses(className)))); }