private void Dispose(bool disposing) { 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); }
private void Dispose(bool disposing) { 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); }