/// <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); }
/// <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; }