Exemplo n.º 1
0
 public MonetaryValue(
     Iso4217CurrencyCode currency,
     int amount,
     int exponent)
 {
     this.currency = currency;
     this.amount   = new DerInteger(amount);
     this.exponent = new DerInteger(exponent);
 }
Exemplo n.º 2
0
        private MonetaryValue(
            Asn1Sequence seq)
        {
            if (seq.Count != 3)
            {
                throw new ArgumentException("Bad sequence size: " + seq.Count, "seq");
            }

            currency = Iso4217CurrencyCode.GetInstance(seq[0]);
            amount   = DerInteger.GetInstance(seq[1]);
            exponent = DerInteger.GetInstance(seq[2]);
        }