public static void TestMethod() { foreach (var type in MartinMulderExtensions.GetDesiredTypes()) { Console.WriteLine(type); } }
public static Type[] GetDesiredTypes() { return(( from type in MartinMulderExtensions.GetMscorlibTypes() .Select(x => x.GetRetrievableTypes()) .Aggregate(Enumerable.Union) where null == type.BaseType where type.IsClass where !type.IsInterface where !type.IsValueType where typeof(void) != type where !type.IsByRef where !type.IsPointer select type ).ToArray()); }
public static Type[] GetDesiredTypes() { return ( from type in MartinMulderExtensions.GetMscorlibTypes() .Select(x => x.GetRetrievableTypes()) .Aggregate(Enumerable.Union)