Esempio n. 1
0
        /// <summary>
        /// Gets this <see cref="Vehicle"/> <see cref="Model"/> manufacturer name
        /// </summary>
        /// <param name="vehicleModel">the <see cref="Model"/>. (must be a vehicle model)</param>
        public static string GetMakeName(this Model vehicleModel)
        {
            string labelName = NativeWrappers.GetMakeNameFromVehicleModel(vehicleModel.Hash);

            if (string.IsNullOrWhiteSpace(labelName))
            {
                return(string.Empty);
            }
            return(NativeWrappers.GetLabelText(labelName));
        }