コード例 #1
0
        // Constructors

        /// <summary>
        /// Initializes a new instance of this type.
        /// </summary>
        public CharArithmetic(IArithmeticProvider provider, ArithmeticRules rule)
            : base(provider, rule)
        {
        }
コード例 #2
0
 /// <inheritdoc/>
 protected override IArithmetic <Int16> CreateNew(ArithmeticRules rules)
 {
     return(new Int16Arithmetic(Provider, rules));
 }
コード例 #3
0
        // Constructors

        /// <summary>
        /// Initializes a new instance of this type.
        /// </summary>
        public SByteArithmetic(IArithmeticProvider provider, ArithmeticRules rule)
            : base(provider, rule)
        {
        }
コード例 #4
0
 /// <inheritdoc/>
 protected override IArithmetic <Char> CreateNew(ArithmeticRules rules)
 {
     return(new CharArithmetic(Provider, rules));
 }
コード例 #5
0
 /// <inheritdoc/>
 protected override IArithmetic <Double> CreateNew(ArithmeticRules rules)
 {
     return(new DoubleArithmetic(Provider, rules));
 }
コード例 #6
0
 /// <inheritdoc/>
 protected override IArithmetic <SByte> CreateNew(ArithmeticRules rules)
 {
     return(new SByteArithmetic(Provider, rules));
 }
コード例 #7
0
        // Constructors

        /// <summary>
        /// Initializes a new instance of this type.
        /// </summary>
        public DecimalArithmetic(IArithmeticProvider provider, ArithmeticRules rule)
            : base(provider, rule)
        {
        }
コード例 #8
0
 /// <inheritdoc/>
 protected override IArithmetic <Decimal> CreateNew(ArithmeticRules rules)
 {
     return(new DecimalArithmetic(Provider, rules));
 }
コード例 #9
0
        // Constructors

        /// <summary>
        /// Initializes a new instance of this type.
        /// </summary>
        public UInt64Arithmetic(IArithmeticProvider provider, ArithmeticRules rule)
            : base(provider, rule)
        {
        }
コード例 #10
0
 /// <inheritdoc/>
 protected override IArithmetic <UInt64> CreateNew(ArithmeticRules rules)
 {
     return(new UInt64Arithmetic(Provider, rules));
 }
コード例 #11
0
        // Constructors

        /// <summary>
        /// Initializes a new instance of this type.
        /// </summary>
        /// <param name="provider">Arithmetic provider this instance is bound to.</param>
        /// <param name="rules">Arithmetic rules.</param>
        public WrappingArithmetic(IArithmeticProvider provider, ArithmeticRules rules)
            : base(provider, rules)
        {
            ArgumentValidator.EnsureArgumentNotNull(provider, "provider");
            BaseArithmetic = provider.GetArithmetic <TBase>();
        }