public static string SaveToConfigString() { string empty = string.Empty; Assembly[] assemblies = AppDomain.CurrentDomain.GetAssemblies(); for (int i = 0; i < (int)assemblies.Length; i++) { Type[] types = assemblies[i].GetTypes(); for (int j = 0; j < (int)types.Length; j++) { if (types[j].IsSubclassOf(typeof(ConsoleSystem))) { empty = string.Concat(empty, ConsoleSystem.CollectSavedFields(types[j])); empty = string.Concat(empty, ConsoleSystem.CollectSavedProperties(types[j])); empty = string.Concat(empty, ConsoleSystem.CollectSavedFunctions(types[j])); } } } return(empty); }