I want to create a class that has an optional property. I don't want to create a subclass
Example
public class MyClass
{
public MyClass( int extraPoperty)
{
// Something like this
public int ExtraPoperty { get; set; }
}
public int EntityId { get; set; }
}
Is this possible ?