ScriptStack 1.0.4
Loading...
Searching...
No Matches
NullReference.cs
Go to the documentation of this file.
1using System;
2using System.Collections.Generic;
3using System.Text;
4
6{
7 internal class NullReference
8 {
9 #region Private Static Variables
10
11 private static NullReference s_nullReference;
12
13 #endregion
14
15 #region Private Methods
16
17 private NullReference()
18 {
19 }
20
21 #endregion
22
23 #region Public Methods
24
25 public static NullReference Instance
26 {
27 get
28 {
29 if (s_nullReference == null)
30 s_nullReference = new NullReference();
31 return s_nullReference;
32 }
33 }
34
35 public override string ToString()
36 {
37 return "NULL";
38 }
39
40 #endregion
41 }
42}