Skip to content

Instantly share code, notes, and snippets.

@ankitvijay
Last active March 16, 2020 20:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ankitvijay/52c7b4adf758aae464008d7dbeb4bcb5 to your computer and use it in GitHub Desktop.
Save ankitvijay/52c7b4adf758aae464008d7dbeb4bcb5 to your computer and use it in GitHub Desktop.
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