コード例 #1
0
        /// <summary>
        /// Get the current running instance of the object
        /// </summary>
        /// <returns></returns>
        public static AdminViewModels GetInstanceOfObject()
        {
            if (instanceOfObject == null)
            {
                instanceOfObject = new AdminViewModels();
            }

            return(instanceOfObject);
        }
コード例 #2
0
 /// <summary>
 /// Destroys the current running instance
 /// </summary>
 public void DestroyInstance()
 {
     instanceOfObject = null;
 }