Represents text decoding context.
Namespace: DotNext.Text Assembly: DotNext.IO.dll Syntaxpublic readonly struct DecodingContext : ICloneable, IResettable
Constructors | Edit this page View Source DecodingContext(Encoding, bool)
Represents text decoding context.
Declarationpublic DecodingContext(Encoding encoding, bool reuseDecoder)
Parameters Type Name Description Encoding encoding
The encoding to be used for converting bytes into string.
bool reuseDecodertrue to reuse the decoder between decoding operations; false to create separated encoder for each encoding operation.
Exceptions Properties | Edit this page View Source EncodingGets encoding associated with this context.
Declarationpublic Encoding Encoding { get; }
Property Value Exceptions Methods | Edit this page View Source Copy()
Creates independent copy of this context that can be used in separated async flow or thread.
Declarationpublic DecodingContext Copy()
Returns Exceptions | Edit this page View Source Reset()
Sets the encapsulated decoder to its initial state.
Declaration Exceptions Operators | Edit this page View Source implicit operator DecodingContext(Encoding)Creates decoding context.
Declarationpublic static implicit operator DecodingContext(Encoding encoding)
Parameters Type Name Description Encoding encoding
The text encoding.
Returns Exceptions Implements Extension MethodsRetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4