Exemplo n.º 1
0
        /// <summary>
        /// Add a decoder.
        /// </summary>
        /// <param name="decoder"></param>
        /// <exception cref="ArgumentNullException"></exception>
        public void Add(IFormDecoder decoder)
        {
            if (decoder == null)
                throw new ArgumentNullException("decoder");
            if (_decoders.Contains(decoder))
                return;

            _decoders.Add(decoder);
        }
Exemplo n.º 2
0
        /// <summary>
        /// Add a decoder.
        /// </summary>
        /// <param name="decoder"></param>
        /// <exception cref="ArgumentNullException"></exception>
        public void Add(IFormDecoder decoder)
        {
            if (decoder == null)
            {
                throw new ArgumentNullException("decoder");
            }
            if (_decoders.Contains(decoder))
            {
                return;
            }

            _decoders.Add(decoder);
        }