System.Reflection.Metadata.MetadataStringDecoder
Provides the MetadataReader with a custom mechanism for decoding byte sequences in metadata that represent text.
Gets the default decoder used by MetadataReader to decode UTF-8 when no decoder is provided to the constructor.
Gets the encoding used by this instance.
Initializes a new instance of the MetadataStringDecoder class using the given encoding.
Obtains strings for byte sequences in metadata. Override this to cache strings if required. Otherwise, it is implemented by forwarding straight to Encoding and every call will allocate a new string.