Skip to content

Instantly share code, notes, and snippets.

@chamook
Last active January 20, 2016 21:02
Show Gist options
  • Select an option

  • Save chamook/7eca4df4dd5852aeab49 to your computer and use it in GitHub Desktop.

Select an option

Save chamook/7eca4df4dd5852aeab49 to your computer and use it in GitHub Desktop.
public static class FunctionContainer
{
public static string SomeStringFunction(string input) => "So, gosh-darned creative:" + input;
}
public static class Injector
{
public static SomeClassWithADependency GetTheThing() =>
new SomeClassWithADependency(FunctionContainer.SomeStringFunction.ToFSharpFunc());
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment