Exemplo n.º 1
0
        /// <summary>
        /// Gets information about the Disturbance identified by the given ID.
        /// </summary>
        /// <param name="disturbanceCategoryID">Globally unique identifier for the Disturbance Category.</param>
        /// <returns>The information about the vendor.</returns>
        public static Identifier GetInfo(Guid disturbanceCategoryID)
        {
            Identifier identifier;

            return(DisturbanceLookup.TryGetValue(disturbanceCategoryID, out identifier) ? identifier : null);
        }
Exemplo n.º 2
0
 /// <summary>
 /// Gets information about the Disturbance identified by the given ID.
 /// </summary>
 /// <param name="disturbanceCategoryID">Globally unique identifier for the Disturbance Category.</param>
 /// <returns>The information about the vendor.</returns>
 public static Identifier?GetInfo(Guid disturbanceCategoryID) => DisturbanceLookup.TryGetValue(disturbanceCategoryID, out Identifier identifier)
     ? identifier
     : null;