Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Captive Depdency example 1
public class ScopedDependency
{
public static int _counter = 0;
public ScopedDependency()
{
++_counter;
}
public int GetNextCounter()
{
return _counter;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment