GetNFIOverrideValues() private méthode

private GetNFIOverrideValues ( NumberFormatInfo nfi ) : void
nfi NumberFormatInfo
Résultat void
        // We aren't persisting dataItem any more (since its useless & we weren't using it),
        // Ditto with m_useUserOverride.  Don't use them, we use a local copy of everything.
        internal NumberFormatInfo(CultureTableRecord cultureTableRecord)
        {
            if (cultureTableRecord != null)
            {
                /*
                We don't have information for the following four.  All cultures use
                the same value set in the ctor of NumberFormatInfo.
                PercentGroupSize
                PercentDecimalDigits
                PercentGroupSeparator
                PerMilleSymbol
                */

                // We directly use fields here since these data is coming from data table or Win32, so we
                // don't need to verify their values (except for invalid parsing situations).

                cultureTableRecord.GetNFIOverrideValues(this);

                if((932 == cultureTableRecord.IDEFAULTANSICODEPAGE) ||
                   (949 == cultureTableRecord.IDEFAULTANSICODEPAGE)) {
                    // Legacy behavior for cultures that use Japaanese/Korean default ANSI code pages
                    this.ansiCurrencySymbol  = "\\";
                }
                this.negativeInfinitySymbol  = cultureTableRecord.SNEGINFINITY;
                this.positiveInfinitySymbol  = cultureTableRecord.SPOSINFINITY;
                this.nanSymbol               = cultureTableRecord.SNAN;
            }
        }