Problem in Writting parameterised property in Managed C++

D

DebGuria

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?
 
J

Jon Skeet [C# MVP]

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?

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top