示例#1
0
        /// <summary>
        /// Clone the <see cref="HexDecoder"/> with its current state.
        /// </summary>
        /// <remarks>
        /// Creates a new <see cref="HexDecoder"/> with exactly the same state as the current decoder.
        /// </remarks>
        /// <returns>A new <see cref="HexDecoder"/> with identical state.</returns>
        public IMimeDecoder Clone()
        {
            var decoder = new HexDecoder();

            decoder.state = state;
            decoder.saved = saved;

            return(decoder);
        }
示例#2
0
		/// <summary>
		/// Clone the <see cref="HexDecoder"/> with its current state.
		/// </summary>
		/// <remarks>
		/// Creates a new <see cref="HexDecoder"/> with exactly the same state as the current decoder.
		/// </remarks>
		/// <returns>A new <see cref="HexDecoder"/> with identical state.</returns>
		public IMimeDecoder Clone ()
		{
			var decoder = new HexDecoder ();

			decoder.state = state;
			decoder.saved = saved;

			return decoder;
		}