Click or drag to resize
SingletonT Class
Implements generic Singleton pattern.
Inheritance Hierarchy
SystemObject
  StreamCoders.HelpersSingletonT

Namespace: StreamCoders.Helpers
Assembly: MediaBase (in MediaBase.dll) Version: 2.0.5.0 (2.0.5.0)
Syntax
public class Singleton<T>
where T : class, new()

Type Parameters

T
Type of class to instantiate.

The SingletonT type exposes the following members.

Properties
  NameDescription
Public propertyStatic memberInstance
Gets an instance of type T.
Top
Extension Methods
  NameDescription
Public Extension MethodCopyOverloaded.
Creates a copy of the object.
(Defined by ObjectExtensions.)
Public Extension MethodCopy(Object)Overloaded.
Creates a deep copy of the object using the supplied object as a target for the copy operation.
(Defined by ObjectExtensions.)
Top
Remarks
The classes used together with Singleton must have a default constructor.
See Also