Skip to content

Instantly share code, notes, and snippets.

@dgg
Last active December 15, 2017 07:09
Show Gist options
  • Save dgg/9ade1c7208b1d4fb5b7aeaff3992a03b to your computer and use it in GitHub Desktop.
Save dgg/9ade1c7208b1d4fb5b7aeaff3992a03b to your computer and use it in GitHub Desktop.
heavy-weight-champion
internal interface ICurrencyInfoProvider
{
CurrencyInfo Get(CurrencyIsoCode code);
}
// not a "real" marker interface
internal interface ICurrencyInfoInitializer : ICurrencyInfoProvider, IDisposable { }
internal abstract class Expression
{
public void Interpret(Context context)
{
// some stuff...
}
public abstract string One { get; }
// more abstract properties...
public virtual byte MaxRepetitions => 3;
}
internal sealed class ZeroExpression : Expression
{
public override string One => "N";
// override the rest of the abstract properties
// WHERE IS THE POSSIBLE CALL TO base.MaxRepetitions?????
public override byte MaxRepetitions => 1;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment