System.Reflection.Assembly myAssembly = System.Reflection.Assembly.GetEntryAssembly(); Type[] Types = myAssembly.GetTypes(); foreach (Type myType in Types) { if