internal class Base
{
string m_Name;
protected virtual void OnNameChanging(string value) { }
public string Name
{
get { return m_Name; }
set
{
OnNameChanging(value.ToUpper());
m_Name = value;
}
}
}
internal class Derived : Base
{
protected override void OnNameChanging(string value)
{
if (string.IsNullOrEmpty(value)) { return; }
}
}