Esempio n. 1
0
File: Vendor.cs Progetto: xj0229/gsf
        /// <summary>
        /// Gets information about the vendor identified by the given ID.
        /// </summary>
        /// <param name="vendorID">Globally unique identifier for the vendor.</param>
        /// <returns>The information about the vendor.</returns>
        public static Identifier GetInfo(Guid vendorID)
        {
            Identifier identifier;

            return(VendorLookup.TryGetValue(vendorID, out identifier) ? identifier : null);
        }
Esempio n. 2
0
 /// <summary>
 /// Gets information about the vendor identified by the given ID.
 /// </summary>
 /// <param name="vendorID">Globally unique identifier for the vendor.</param>
 /// <returns>The information about the vendor.</returns>
 public static Identifier?GetInfo(Guid vendorID) => VendorLookup.TryGetValue(vendorID, out Identifier identifier)
     ? identifier
     : null;
 public void Initialize()
 {
     _vendorLooup = new VendorLookup();
 }