Dispose() public method

public Dispose ( ) : void
return void
コード例 #1
0
 public void Dispose()
 {
     if (dwUnionChoice == UnionChoice.File)
     {
         var info = new WINTRUST_FILE_INFO();
         Marshal.PtrToStructure(pInfoStruct, info);
         info.Dispose();
         Marshal.DestroyStructure(pInfoStruct, typeof(WINTRUST_FILE_INFO));
     }
     Marshal.FreeHGlobal(pInfoStruct);
 }
コード例 #2
0
ファイル: NativeMethods.cs プロジェクト: secana/PeNet
 public void Dispose()
 {
     if (dwUnionChoice == UnionChoice.File)
     {
         var info = new WINTRUST_FILE_INFO();
         Marshal.PtrToStructure(pInfoStruct, info);
         info.Dispose();
         Marshal.DestroyStructure(pInfoStruct, typeof(WINTRUST_FILE_INFO));
     }
     Marshal.FreeHGlobal(pInfoStruct);
 }