I have created COM interface with read/write properties:
[
object,
uuid(...),
dual,
pointer_default(unique)
]
IInterfaceWithProperty : IDispatch
{
[propget, id(1)] HRESULT Property([out, retval] IInterface2** ppObject);
[propput, id(1)] HRESULT Property([in] IInterface* pObject);
};
And when tried to use in in C#:
var value = object.Property;
object.Property = value;
got the following error:
error CS1545: Property, indexer, or event 'IInterfaceWithProperty .Property' is not supported
by the language; try directly calling accessor methods
'IInterfaceWithProperty.get_Property()' or
'IInterfaceWithProperty.set_Property(IInterface)'
What could be the reason?