コード例 #1
0
 /// <summary>
 /// Accessor method for accessing the single instance of FileSystemHandler.
 /// </summary>
 /// <returns>The only instance of FileSystemHandler</returns>
 public static FileSystemHandler GetInstance()
 {
     if (instance == null)
     {
         instance = new FileSystemHandler();
     }
     return(instance);
 }
コード例 #2
0
 /// <summary>
 /// Accessor method for accessing the single instance of FileSystemHandler.
 /// </summary>
 /// <returns>The only instance of FileSystemHandler</returns>
 public static FileSystemHandler GetInstance()
 {
     if (instance == null)
     {
         instance = new FileSystemHandler();
     }
     return instance;
 }
コード例 #3
0
 /// <summary>
 /// Private constructor to ensure that Facade is not created outside this class.
 /// </summary>
 private PersistentStorage()
 {
     dao = DAO.GetInstance();
     fsh = FileSystemHandler.GetInstance();
 }
コード例 #4
0
 /// <summary>
 /// Private constructor to ensure that Facade is not created outside this class.
 /// </summary>
 private PersistentStorage()
 {
     dao = DAO.GetInstance();
     fsh = FileSystemHandler.GetInstance();
 }