コード例 #1
0
 public MoneyFormatter(IOrganizationMoneyFormatInfo organization, IMoneyFormatInfo record, MoneyAttributeMetadata attributeMetadata, CultureInfo culture = null)
     : this(organization, record, attributeMetadata.Precision, attributeMetadata.PrecisionSource, attributeMetadata.IsBaseCurrency.GetValueOrDefault(), culture)
 {
     if (attributeMetadata == null)
     {
         throw new ArgumentNullException("attributeMetadata");
     }
 }
コード例 #2
0
        public MoneyFormatter(IOrganizationMoneyFormatInfo organization, IMoneyFormatInfo record, int?attributePrecision = null, int?precisionSource = null, bool isBaseCurrency = false, CultureInfo culture = null)
            : base(organization, culture)
        {
            if (record == null)
            {
                throw new ArgumentNullException("record");
            }

            _attributePrecision = attributePrecision;
            _precisionSource    = precisionSource;
            _record             = record;
            _isBaseCurrency     = isBaseCurrency;
        }