I have written a managed C++ dll. I have to use that dll from C#,
VB .NET and VB. It has got a parameterised propetyfor the very
specific requirement. For example get_Pie(float f).
When I am using that dll from another Managed C++ application, VS
2003/2005 IDE is displaying one property and one method for that. i.e.
displaying "get_Pie" as method and "Pie" as property. But when I am
using that dll from C#, it is displaying only method "get_Pie" and in
VB it is displaying "Pie" as property.
Why different IDE behaving different?
How can I solve this issue?
Jon Skeet [C# MVP] - 29 Jun 2007 11:10 GMT
> I have written a managed C++ dll. I have to use that dll from C#,
> VB .NET and VB. It has got a parameterised propetyfor the very
[quoted text clipped - 7 lines]
> Why different IDE behaving different?
> How can I solve this issue?
C# doesn't have parameterised properties that can be accessed by name
- only indexers. I'm afraid I don't know the C++ syntax to indicate
that a property should be regarded as an indexer for a type.
Jon