Пример #1
0
 public static DLObject getInstance()
 {
     if (instance == null)
     {
         instance = new DLObject();
     }
     return(instance);
 }
Пример #2
0
 public static DLObject GetDLObject()
 {
     if (instance == null)
     {
         instance = new DLObject();
         DateSource a = DateSource.GetDateObject();
     }
     return(instance);
 }
Пример #3
0
        public static IDL GetDL(string type)
        {
            switch (type)
            {
            case "lists":
                return(DLObject.getInstance());

            default:
                throw new Exception("No such type of DL object implementation exists (factory exception...)");
            }
        }