Convertinator Conversion interfaces
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
public interface IConversion | |
{ | |
IEnumerable<IConversionStep> Steps { get; } | |
void AddStep(IConversionStep step); | |
Conversion Reverse(); | |
} | |
public interface IConversionStep | |
{ | |
decimal Apply(decimal input); | |
IConversionStep Reverse(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment