From: David P. <dpi...@me...> - 2010-12-09 16:48:09
|
> Is it possible to set a method modifier for a property definition in C#? I have > a (admittedly strange) situation when a property is defined as being read- > only in the base class but read-write in a derived class and while redefining it > as such works fine, it results in C# compiler warnings about hiding the > inherited read-only property declaration. Sure, you can use it with properties. It works for me. %csmethodmodifiers Namespace::Class::Property "public new" Use it before the definition of the property (%attribute) |