filewatcher/code/src/Singleton.cs
Brian 51e217e38c Added project files, source files, and assets.
As long as you have IronPython 2.7.3 you should be able to compile now
with this commit.
2013-12-20 19:54:45 -07:00

26 lines
550 B
C#

namespace FileWatcher
{
//http://csharpindepth.com/articles/general/singleton.aspx
public sealed class Singleton
{
private static readonly Singleton instance = new Singleton();
// Explicit static constructor to tell C# compiler
// not to mark type as beforefieldinit
static Singleton()
{
}
private Singleton()
{
}
public static Singleton Instance
{
get
{
return instance;
}
}
}
}