Last active
December 15, 2017 07:09
-
-
Save dgg/9ade1c7208b1d4fb5b7aeaff3992a03b to your computer and use it in GitHub Desktop.
heavy-weight-champion
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
internal interface ICurrencyInfoProvider | |
{ | |
CurrencyInfo Get(CurrencyIsoCode code); | |
} | |
// not a "real" marker interface | |
internal interface ICurrencyInfoInitializer : ICurrencyInfoProvider, IDisposable { } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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