G
Guest
Index properties in C++ class libraries (.NET) apper as set_ and get_ methods when used in C#
To test this out, I changed the example from section "13.2 Indexed Properties" in MSDN, and placed the Employee and Manager classes in a library. Then I wrote a C# application implement the code from main(). What happens is that everyting works fine except when trying to call the indexed properties
Example
The following line does not work (as it does in C++)
Ed.Report[ Bob.name ] = Bob
But instead the following works
Ed.set_Report( Bob.name, Bob )
This just doesn't look right
To test this out, I changed the example from section "13.2 Indexed Properties" in MSDN, and placed the Employee and Manager classes in a library. Then I wrote a C# application implement the code from main(). What happens is that everyting works fine except when trying to call the indexed properties
Example
The following line does not work (as it does in C++)
Ed.Report[ Bob.name ] = Bob
But instead the following works
Ed.set_Report( Bob.name, Bob )
This just doesn't look right