Пример #1
0
        /**
         * Retrieves the TimeReference instance for this specified name.
         */
        public TimeReference Get(string name)
        {
            if (string.IsNullOrEmpty(name))
            {
                return(TimeReference.GetDefaultInstance());
            }

            Assertion.Assert(instanceMap.ContainsKey(name));
            return(instanceMap[name]);
        }
Пример #2
0
 /**
  * Returns the default TimeReference instance.
  */
 public TimeReference GetDefault()
 {
     return(TimeReference.GetDefaultInstance());
 }