apologize me if this is noob question.
I have the following abstract base class:
public abstract class MockDataBase
{
public virtual string ExternalId { get; set; }
And i have the derived class:
public class UnitMockDataBase: MockDataBase
{
public override string ExternalId { set { ExternalId = value; } }
this throws stack overflow.
If i want the base class to have the property:
public virtual string ExternalId { get; private/protected set; }
And dervied classes to override its setter, how do i implement it ? the base class CANNOT have external id, only some of the derived class use it and need to over ride.
thanks