LoadObjectFromStream() public static method

public static LoadObjectFromStream ( object obj, Stream stm ) : void
obj object
stm Stream
return void
示例#1
0
 private void btnLoad_Click(object sender, EventArgs e)
 {
     try
     {
         using (MemoryStream stm = new MemoryStream(hexEditor.Bytes))
         {
             COMUtilities.LoadObjectFromStream(_obj, stm);
         }
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.ToString(), "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
     }
 }