Opened 13 years ago

Closed 18 months ago

#1603 closed enhancement (fixed)

System.IDisposable interface support for .net API

Reported by: jng Owned by:
Priority: low Milestone: 4.0
Component: General Version:
Severity: trivial Keywords:
Cc: External ID:

Description

Attached is a patch that modifies the .net SWIG recipe file so that generated .net classes are partial

With partial classes, we can then perform augmentations on certain classes, and the changes will not be lost each time we regenerate the .net API.

In this patch, the MgDisposable proxy class has been augmented to implement the System.IDisposable interface, thereby allowing any MgDisposable derived classes to be used within a using block

Attachments (1)

idisposable.patch (942 bytes ) - added by jng 13 years ago.
Patch to support System.IDisposable interface

Download all attachments as: .zip

Change History (3)

by jng, 13 years ago

Attachment: idisposable.patch added

Patch to support System.IDisposable interface

comment:1 by jng, 18 months ago

Milestone: 4.0

Check if all classes in the new .net binding implement IDisposable

comment:2 by jng, 18 months ago

Resolution: fixed
Status: newclosed

All .net proxy classes in the new binding implements IDispoable (direct or via its parent classes)

Note: See TracTickets for help on using tickets.