MongoDB c# sharp 属性 vs 字段 vs 成员 vs 元素

MongoDB c# sharp Property vs Field vs Member vs Element

查看自定义序列化,

之间有什么区别
A "Property" BsonClassMap.MapProperty
A "Field" BsonClassMap.MapField
A "Member" BsonClassMap.MapMember

来自http://api.mongodb.org/csharp/1.0/html/18aadb76-2494-c732-9768-bc9f41597801.htm

地图属性 为 属性 创建成员映射并将其添加到 class 映射。

地图字段
为字段创建成员映射并将其添加到 class 映射。

地图成员
为成员创建成员映射并将其添加到 class 映射。

这个答案应该涵盖它:

What is the difference between a Field and a Property in C#?

C# 字段是用来隐藏的。属性公开字段。