예제 #1
0
        /// <summary>
        /// Default ctor
        /// </summary>
        private CultureInfo(Locale locale, bool isInvariant = false)
        {
            this._locale = locale;
            _numberFormat = new LazyAndWeak<NumberFormatInfo>(()=>new NumberFormatInfo(locale));
            _dateTimeFormat = new LazyAndWeak<DateTimeFormatInfo>(() => new DateTimeFormatInfo(locale, isInvariant));

        }
예제 #2
0
 /// <summary>
 /// Default ctor
 /// </summary>
 private CultureInfo(Locale locale, bool isInvariant = false)
 {
     this._locale    = locale;
     _numberFormat   = new LazyAndWeak <NumberFormatInfo>(() => new NumberFormatInfo(locale));
     _dateTimeFormat = new LazyAndWeak <DateTimeFormatInfo>(() => new DateTimeFormatInfo(locale, isInvariant));
 }