Hi,
Recently I needed to use the BondFunctions class from C#. I don’t believe this is exposed from the current SWIG implementation, so please find attached a SWIG interface file which exposes most of the methods. Please note this has only been tested in a C# environment.
Also attached are some changes to the date.i class to make use of C# operator overloading for ==, !=, >, <, +, - and also overrides for Equals(object) and GetHashCode() methods – conditional on SWIGCSHARP as the target.
(ql.i has the minor change to include bondfunctions.i.)
I also have a small C# unit test project [28 tests] covering these changes, which I can upload at some point if of any interest.
Cheers
Simon
Free forum by Nabble | Disable Popup Ads | Edit this page |