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.
This commit is contained in:
parent
a62ee2f168
commit
51e217e38c
79 changed files with 6968 additions and 0 deletions
26
code/src/Singleton.cs
Normal file
26
code/src/Singleton.cs
Normal file
|
@ -0,0 +1,26 @@
|
|||
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;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue