Created
August 30, 2018 13:07
-
-
Save alimozdemir/a0fc1595847bb797f822199462d4f9c8 to your computer and use it in GitHub Desktop.
ActionHistory_V3.cs singleton pattern
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 ActionHistory_V3 : IActionHistory | |
{ | |
private static Lazy<ActionHistory_V3> instance = | |
new Lazy<ActionHistory_V3>(() => new ActionHistory_V3()); | |
public static ActionHistory_V3 Instance { get; } = instance.Value; | |
private ActionHistory_V3() | |
{ | |
.... | |
} | |
.... | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment