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)
Printable View
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)
Nope, 'fraid not - you can provide an empty implementation however:
Code:protected override string PropertyName
{
get
{
return _someVariable;
}
set
{
// No implementation.
}
}