Table of Contents

Constructor MemberDefaultValueConvention

Namespace
MongoDB.Bson.Serialization.Conventions
Assembly
MongoDB.Bson.dll

MemberDefaultValueConvention(Type, object)

Initializes a new instance of the MemberDefaultValueConvention class.

public MemberDefaultValueConvention(Type type, object defaultValue)

Parameters

type Type

The type of the member.

defaultValue object

The default value for members of this type.