Example #1
0
        public InspectorAssembly GetAssemblyInformation(byte[] raw)
        {
            var assembly = Assembly.ReflectionOnlyLoad(raw);
            var name     = assembly.GetName();

            var result = new InspectorAssembly
            {
                FullName  = name.FullName,
                ShortName = name.Name
            };

            return(result);
        }
Example #2
0
        public InspectorAssembly Load(byte[] raw, out Assembly assembly)
        {
            var loaded = Assembly.Load(raw);

            assembly = loaded;

            var name = loaded.GetName();

            var result = new InspectorAssembly
            {
                FullName  = name.FullName,
                ShortName = name.Name
            };

            return(result);
        }