Table of Contents

Method Create

Namespace
MongoDB.Bson.Serialization.Serializers
Assembly
MongoDB.Bson.dll

Create(IBsonSerializer, string)

Creates an instance IOrderedEnumerableSerializer<TItem>.

public static IBsonSerializer Create(IBsonSerializer itemSerializer, string thenByExceptionMessage)

Parameters

itemSerializer IBsonSerializer

The item serializer.

thenByExceptionMessage string

The message to use when throwing an exception because ThenBy is not supported.

Returns

IBsonSerializer

An IOrderedEnumerableSerializer<TItem>.