PERWAPI.PEFile.GetThisAssembly C# (CSharp) Method

GetThisAssembly() public method

Get the descriptor for this assembly. The PEFile must have been created with hasAssembly = true
public GetThisAssembly ( ) : Assembly
return Assembly
        public Assembly GetThisAssembly()
        {
            return thisAssembly;
        }

Usage Example

Ejemplo n.º 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);
        }