Table of Contents

Class Utf8NameDecoder

Namespace
MongoDB.Bson.IO
Assembly
MongoDB.Bson.dll

Represents a UTF8 name decoder.

public class Utf8NameDecoder : INameDecoder
Inheritance
Utf8NameDecoder
Implements
Inherited Members
Extension Methods

Properties

Instance

Gets the instance.

public static Utf8NameDecoder Instance { get; }

Property Value

Utf8NameDecoder

The instance.

Methods

Decode(BsonStream, UTF8Encoding)

Decodes the name.

public string Decode(BsonStream stream, UTF8Encoding encoding)

Parameters

stream BsonStream

The stream.

encoding UTF8Encoding

The encoding.

Returns

string

The name.

Inform(string)

Informs the decoder of an already decoded name (so the decoder can change state if necessary).

public void Inform(string name)

Parameters

name string

The name.