Beispiel #1
0
        public StringListApiView Render(AssemblyApiView assembly)
        {
            var list = new StringListApiView();

            Render(assembly.GlobalNamespace, list);
            return(list);
        }
Beispiel #2
0
 static void Main(string[] args)
 {
     try
     {
         var renderer = new TextRendererApiView();
         Console.WriteLine(renderer.Render(AssemblyApiView.AssemblyFromFile(args[0])));
     }
     catch (Exception e)
     {
         Console.WriteLine(e.Message);
         Console.WriteLine(e.StackTrace);
     }
 }
Beispiel #3
0
 static void Main(string[] args)
 {
     try
     {
         var assemblySymbol = AssemblyApiView.GetCompilation(args[0]);
         var renderer       = new CodeFileRenderer();
         var codeNode       = new CodeFileBuilder().Build(assemblySymbol);
         Console.WriteLine(renderer.Render(codeNode));
     }
     catch (Exception e)
     {
         Console.WriteLine(e.ToString());
     }
 }