Beispiel #1
0
        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)));
        }
Beispiel #2
0
 public static IEnumerable <TValue> GetStartFields <TValue>(string className)
 {
     return(StartClassInfo.FindStartFields <TValue>(DescribeAssemblies().SelectMany(a => a.GetStartClasses(className))));
 }