Exemplo n.º 1
0
        internal static bool MatchCulture(XmlLanguage familyMapLanguage, CultureInfo culture)
        {
            // If there is no family map langue, the family map applies to any language.
            if (familyMapLanguage == null)
            {
                return(true);
            }

            if (culture != null)
            {
                return(familyMapLanguage.RangeIncludes(culture));
            }

            return(false);
        }