Created
May 19, 2017 05:12
-
-
Save doeringp/8d144450a6a429a2c3e6c31ee3aa98c1 to your computer and use it in GitHub Desktop.
Lazy Loading with the Lazy class
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
private static readonly Lazy<string> _packagePhysicalPath = new Lazy<string>(ResolvePackagePath); | |
public static string PackagePhysicalPath | |
{ | |
get | |
{ | |
return _packagePhysicalPath.Value; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment