Beispiel #1
0
        public void GenerateDocument(CmdConsole tw)
        {
            var types      = from x in RegisteredTypes.Keys group x by RegisteredTypes[x];
            var othertypes = new List <Type>();

            foreach (var item in types)
            {
                var type = item.Key;
                tw.Write($"[Adatper type {type.Name} - '{string.Join("\', \'", item)}']\n", ConsoleColor.White);
                GenerateDocument(tw, type, othertypes);
                tw.WriteLine("");
            }
            foreach (var type in othertypes)
            {
                tw.Write($"[type {type.Name}]\n", ConsoleColor.White);
                GenerateDocument(tw, type, othertypes);
                tw.WriteLine("");
            }
        }
Beispiel #2
0
 private static void PrintProperty(CmdConsole tw, PropertyInfo item)
 {
     tw.Write($"  {item.Name,-18}  ");
     tw.Write(TypeToString(item.PropertyType) + "\n", ConsoleColor.Cyan);
 }