> If I make a __gc type with __property set and get I set them to
private:,
those 2 methods are private ok but the actual generated property is public
according to the object browser yet its not visible in C#. WTF?
What kind of tosh is this ?
Properties themselves are just metadata. No more.
With that, properties have no accesibility themselves; however, the methods
that conform it *do* have.
When you write in any .NET language a call to a property (say, to get it's
value), what actually is generated is a direct call to the corresponding
method (i.e. get_XXX in this case); that's it. So, if you make them private,
then no one will be able to call them outside the class.
--
Tomas Restrepo
tomasr@<mvps.org