Beispiel #1
0
        /// <summary>
        /// Get the running instance of the class
        /// </summary>
        /// <returns></returns>
        public static ShoppingCartModels GetInstanceOfObject()
        {
            if (instanceOfObject == null)
            {
                instanceOfObject = new ShoppingCartModels();
            }

            return(instanceOfObject);
        }
Beispiel #2
0
 /// <summary>
 /// Destroy instance of class
 /// </summary>
 public void DestroyInstance()
 {
     instanceOfObject = null;
 }