Skip to content

Instantly share code, notes, and snippets.

@hartez
Created October 12, 2012 19:29
Show Gist options
  • Save hartez/3881015 to your computer and use it in GitHub Desktop.
Save hartez/3881015 to your computer and use it in GitHub Desktop.
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