Skip to content

Instantly share code, notes, and snippets.

@hartez
Created October 12, 2012 19:29
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Embed
What would you like to do?
Convertinator Conversion interfaces
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