Пример #1
0
        private void SaveMsil(object o)
        {
            SaveMsilParameter parameter = (SaveMsilParameter)o;

            using (StreamWriter streamWriter = new StreamWriter(parameter.FileName, false, Encoding.ASCII))
            {
                MsilWriterUtility.WriteMsil(parameter.Declaration, streamWriter);
            }
        }
Пример #2
0
        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);
            }
        }
Пример #3
0
        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 );
            }
        }