Пример #1
0
 public static FileProcessorFactory GetInstance()
 {
     if (_instance == null)
     {
         _instance = new FileProcessorFactory();
     }
     return _instance;
 }
Пример #2
0
 /// <summary>
 /// actual diposal method.
 /// </summary>
 /// <param name="dispose_others"></param>
 protected virtual void Dispose(bool dispose_others)
 {
     if (dispose_others == true)
     {
         //nothing to do here...
     }
     _instance = null;
 }