Make non static instance method
This commit is contained in:
parent
7a08405d55
commit
659fe98769
2 changed files with 15 additions and 2 deletions
|
|
@ -37,7 +37,20 @@ namespace MatterHackers.MatterControl
|
|||
{
|
||||
public sealed class VersionInfo
|
||||
{
|
||||
public readonly static VersionInfo Instance = DeserializeFromDisk();
|
||||
private static VersionInfo _instance;
|
||||
|
||||
public static VersionInfo Instance
|
||||
{
|
||||
get
|
||||
{
|
||||
if (_instance == null)
|
||||
{
|
||||
_instance = DeserializeFromDisk();
|
||||
}
|
||||
|
||||
return _instance;
|
||||
}
|
||||
}
|
||||
|
||||
// Prevent external construction and limit to singleton Instance above
|
||||
private VersionInfo()
|
||||
|
|
|
|||
|
|
@ -1 +1 @@
|
|||
Subproject commit 234cca570dfc282a9ed892efa5ac34c5739dd966
|
||||
Subproject commit c1521d279368c157c91b320b4cc73986f2951528
|
||||
Loading…
Add table
Add a link
Reference in a new issue