private void SaveMsil(object o) { SaveMsilParameter parameter = (SaveMsilParameter)o; using (StreamWriter streamWriter = new StreamWriter(parameter.FileName, false, Encoding.ASCII)) { MsilWriterUtility.WriteMsil(parameter.Declaration, streamWriter); } }
public void SaveMsil(MetadataDeclaration writeILDefinition) { if (this.saveMsilFileDialog.ShowDialog(this) == DialogResult.OK) { SaveMsilParameter parameter = new SaveMsilParameter(); parameter.Declaration = writeILDefinition; parameter.FileName = this.saveMsilFileDialog.FileName; WaitForm waitForm = new WaitForm(this.SaveMsil, parameter); waitForm.ShowDialog(this); } }
public void SaveMsil( MetadataDeclaration writeILDefinition ) { if ( this.saveMsilFileDialog.ShowDialog( this ) == DialogResult.OK ) { SaveMsilParameter parameter = new SaveMsilParameter(); parameter.Declaration = writeILDefinition; parameter.FileName = this.saveMsilFileDialog.FileName; WaitForm waitForm = new WaitForm( this.SaveMsil, parameter ); waitForm.ShowDialog( this ); } }