Ejemplo n.º 1
0
 static CurrencyCharacterReferences()
 {
     _currencyReferences = new Dictionary <string, CharacterReference>(6, StringComparer.OrdinalIgnoreCase)
     {
         { "cent", Cent = new CharacterReference("cent") },
         { "pound", Pound = new CharacterReference("pound") },
         { "curren", Curren = new CharacterReference("curren") },
         { "yen", Yen = new CharacterReference("yen") },
         { "fnof", Fnof = new CharacterReference("fnof") },
         { "euro", Euro = new CharacterReference("euro") }
     };
 }
Ejemplo n.º 2
0
        public CurrencyInfo(CurrencyIsoCode code, string englishName, string nativeName, string tokenizedSymbol, int significantDecimalDigits, string decimalSeparator, string groupSeparator, string tokenizedGroupSizes, int positivePattern, int negativePattern, bool obsolete, CharacterReference entity)
        {
            Code        = code;
            EnglishName = englishName;
            NativeName  = nativeName;

            Symbol = Support.UnicodeSymbol.FromTokenizedCodePoints(tokenizedSymbol).Symbol;
            SignificantDecimalDigits = significantDecimalDigits;
            DecimalSeparator         = decimalSeparator;
            GroupSeparator           = groupSeparator;
            GroupSizes      = Support.GroupSizes.FromTokenizedSizes(tokenizedGroupSizes).Sizes;
            PositivePattern = positivePattern;
            NegativePattern = negativePattern;

            Obsolete = obsolete;
            Entity   = entity;
        }