|
namespace Sample
{
/// <summary>
/// use this class to load and cache app settings into your test.
/// note that its a thread-safe singleton.
/// for more information, visit: http://www.yoda.arachsys.com/csharp/singleton.html
/// </summary>
public class Configuration
{
#region Singleton Pattern
Configuration() {
}
public static Configuration Instance {
get {
return Nested.instance;
}
}
class Nested {
/// <summary>
/// Explicit static constructor to tell C# compiler
/// not to mark type as beforefieldinit.
/// </summary>
static Nested() {}
internal static readonly Configuration instance = new Configuration();
}
#endregion
#region Properties
#endregion
#region Methods
#endregion
#region Members
#endregion
}
}
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
Independent contract developer for .NET data-oriented systems.
not much to say about myself but feel free to contact me for any inquiries and comments!