Confuser.Core/ConfuserContext.cs
/// <summary>
///     Requests the current module to be written as mix-mode module, and return the native writer options.
/// </summary>
/// <returns>The native writer options.</returns>
// Token: 0x060002F0 RID: 752 RVA: 0x00012504 File Offset: 0x00010704
Requests the current module to be written as mix-mode module, and return the native writer options.
Requests the current module to be written as mix - mode module and return the native writer options .
public NativeModuleWriterOptions RequestNative()
		{
			if (this.CurrentModule == null)
			{
				return null;
			}
			if (this.CurrentModuleWriterOptions == null)
			{
				this.CurrentModuleWriterOptions = new NativeModuleWriterOptions(this.CurrentModule);
			}
			if (this.CurrentModuleWriterOptions is NativeModuleWriterOptions)
			{
				return (NativeModuleWriterOptions)this.CurrentModuleWriterOptions;
			}
			NativeModuleWriterOptions newOptions = new NativeModuleWriterOptions(this.CurrentModule, this.CurrentModuleWriterOptions.Listener);
			newOptions.AddCheckSum = this.CurrentModuleWriterOptions.AddCheckSum;
			newOptions.Cor20HeaderOptions = this.CurrentModuleWriterOptions.Cor20HeaderOptions;
			newOptions.Logger = this.CurrentModuleWriterOptions.Logger;
			newOptions.MetaDataLogger = this.CurrentModuleWriterOptions.MetaDataLogger;
			newOptions.MetaDataOptions = this.CurrentModuleWriterOptions.MetaDataOptions;
			newOptions.ModuleKind = this.CurrentModuleWriterOptions.ModuleKind;
			newOptions.PEHeadersOptions = this.CurrentModuleWriterOptions.PEHeadersOptions;
			newOptions.ShareMethodBodies = this.CurrentModuleWriterOptions.ShareMethodBodies;
			newOptions.StrongNameKey = this.CurrentModuleWriterOptions.StrongNameKey;
			newOptions.StrongNamePublicKey = this.CurrentModuleWriterOptions.StrongNamePublicKey;
			newOptions.Win32Resources = this.CurrentModuleWriterOptions.Win32Resources;
			this.CurrentModuleWriterOptions = newOptions;
			return newOptions;
		}
public NativeModuleWriterOptions RequestNative ( ) { if ( this . CurrentModule == null ) { return null ; } if ( this . CurrentModuleWriterOptions == null ) { this . CurrentModuleWriterOptions = new NativeModuleWriterOptions ( this . CurrentModule ) ; } if ( this . CurrentModuleWriterOptions is NativeModuleWriterOptions ) { return ( NativeModuleWriterOptions ) this . CurrentModuleWriterOptions ; } NativeModuleWriterOptions newOptions = new NativeModuleWriterOptions ( this . CurrentModule , this . CurrentModuleWriterOptions . Listener ) ; newOptions . AddCheckSum = this . CurrentModuleWriterOptions . AddCheckSum ; newOptions . Cor20HeaderOptions = this . CurrentModuleWriterOptions . Cor20HeaderOptions ; newOptions . Logger = this . CurrentModuleWriterOptions . Logger ; newOptions . MetaDataLogger = this . CurrentModuleWriterOptions . MetaDataLogger ; newOptions . MetaDataOptions = this . CurrentModuleWriterOptions . MetaDataOptions ; newOptions . ModuleKind = this . CurrentModuleWriterOptions . ModuleKind ; newOptions . PEHeadersOptions = this . CurrentModuleWriterOptions . PEHeadersOptions ; newOptions . ShareMethodBodies = this . CurrentModuleWriterOptions . ShareMethodBodies ; newOptions . StrongNameKey = this . CurrentModuleWriterOptions . StrongNameKey ; newOptions . StrongNamePublicKey = this . CurrentModuleWriterOptions . StrongNamePublicKey ; newOptions . Win32Resources = this . CurrentModuleWriterOptions . Win32Resources ; this . CurrentModuleWriterOptions = newOptions ; return newOptions ; }
Requests the current module to be written as mix-mode module, and return the native writer options.
Requests the current module to be written as mix - mode module and return the native writer options .
The native writer options.
The native writer options .