forked from AtomicGameEngine/AtomicGameEngine
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathAtomicTools.cs
More file actions
41 lines (30 loc) · 823 Bytes
/
AtomicTools.cs
File metadata and controls
41 lines (30 loc) · 823 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
using System;
using System.IO;
using System.Diagnostics;
using System.Collections.Generic;
using System.Collections.Immutable;
using System.Linq;
using System.Reflection;
using System.Reflection.Metadata;
using System.Reflection.PortableExecutable;
using System.Reflection.Metadata.Ecma335;
using System.Text;
using AtomicEngine;
using File = System.IO.File;
namespace AtomicTools
{
public class AtomicTools
{
public static String InspectAssembly (String pathToAssembly)
{
try {
var inspector = new AssemblyInspector ();
inspector.Inspect (pathToAssembly);
return inspector.DumpToJSON();
} catch (Exception ex) {
Console.WriteLine (ex.Message);
}
return "";
}
}
}