PDA

Click to See Complete Forum and Search --> : overriding an abstract property?


MrPolite
Jun 4th, 2005, 02:41 AM
I'm inheriting from a class that has an abstract property
the property has a get and set field. I'm wondering if there is a way to override it so that I would only need to implement the get field (ie, make it a readonly property)

axion_sa
Jun 6th, 2005, 02:37 PM
Nope, 'fraid not - you can provide an empty implementation however:

protected override string PropertyName
{
get
{
return _someVariable;
}
set
{
// No implementation.
}
}