Last active
March 16, 2020 20:11
-
-
Save ankitvijay/52c7b4adf758aae464008d7dbeb4bcb5 to your computer and use it in GitHub Desktop.
Captive Depdency example 1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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