Screenshot instructions:
Windows
Mac
Red Hat Linux
Ubuntu
Click URL instructions:
Right-click on ad, choose "Copy Link", then paste here →
(This may not be possible with some types of ads)
From: John Twigg <twiggjohn@ho...> - 2011-05-26 07:21:12
|
Just got Swig working converting some classes from C++ -> C# and I'm loving it! Way to go. First of many questions to come. I'd like to add a portion of code to all the c# classes that I create <See below>. This way I can improve the memory management of the class. I know I can do this with the "%typemap(cscode) Container %{ ...." code but this only works for the 'Container' class and I'd like it to be included in ALL classes. Is there a way I can inject a portion of code into all classes that I wrap? Example code for injection: public IntPtr Data { get { return this.swigCPtr.Handle; } } |