예제 #1
0
        /// <summary>
        /// Gets the information about the quantity
        /// type identified by the given ID.
        /// </summary>
        /// <param name="quantityTypeID">The quantity type ID.</param>
        /// <returns>Information about the quantity type.</returns>
        public static Identifier GetInfo(Guid quantityTypeID)
        {
            Identifier identifier;

            return(QuantityTypeLookup.TryGetValue(quantityTypeID, out identifier) ? identifier : null);
        }
예제 #2
0
 /// <summary>
 /// Gets the information about the quantity
 /// type identified by the given ID.
 /// </summary>
 /// <param name="quantityTypeID">The quantity type ID.</param>
 /// <returns>Information about the quantity type.</returns>
 public static Identifier?GetInfo(Guid quantityTypeID) => QuantityTypeLookup.TryGetValue(quantityTypeID, out Identifier identifier)
     ? identifier
     : null;