Exemple #1
0
        /// <summary>
        /// Returns the <see cref="GrapeVarietyInfo.Hue"/> property of '<paramref name="variety"/>' -or- 0 if an invalid variety was specified.
        /// </summary>
        public static int GetHue(GrapeVariety variety)
        {
            GrapeVarietyInfo info = GetInfo(variety);

            return(info == null ? 0 : info.Hue);
        }
Exemple #2
0
        /// <summary>
        /// Returns the <see cref="GrapeVarietyInfo.Name"/> property of '<paramref name="variety"/>' -or- an empty string if the variety specified was invalid.
        /// </summary>
        public static string GetName(GrapeVariety variety)
        {
            GrapeVarietyInfo info = GetInfo(variety);

            return(info == null ? String.Empty : info.Name);
        }
Exemple #3
0
        /// <summary>
        /// Returns the <see cref="GrapeVarietyInfo.Number"/> property of '<paramref name="variety"/>' -or- 0 if an invalid variety was specified.
        /// </summary>
        public static int GetLocalizationNumber(GrapeVariety variety)
        {
            GrapeVarietyInfo info = GetInfo(variety);

            return(info == null ? 0 : info.Number);
        }