GetThisAssembly() 공개 메소드

Get the descriptor for this assembly. The PEFile must have been created with hasAssembly = true
public GetThisAssembly ( ) : Assembly
리턴 Assembly
예제 #1
0
        // -----------------------------------------------------------------


        internal void CreateAssembly(string directory, string fileName, string assemblyName, bool GUI) {
            Assembly = new PEFile(fileName, assemblyName);
            Assembly.SetSubSystem(GUI ? SubSystem.Windows_GUI : SubSystem.Windows_CUI);
            Assembly.SetNetVersion(NetVersion.Version2);
            Assembly.GetThisAssembly().AddCustomAttribute(Runtime.RubyAttribute.ctor, new byte[0]);
            Assembly.SetOutputDirectory(directory);
        }