Table of Contents

Method MapMember

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

MapMember<TMember>(Expression<Func<TClass, TMember>>)

Creates a member map and adds it to the class map.

public BsonMemberMap MapMember<TMember>(Expression<Func<TClass, TMember>> memberLambda)

Parameters

memberLambda Expression<Func<TClass, TMember>>

A lambda expression specifying the member.

Returns

BsonMemberMap

The member map.

Type Parameters

TMember

The member type.