-1

Looking into Custom Serialization, what's the difference between

A "Property" BsonClassMap.MapProperty
A "Field" BsonClassMap.MapField
A "Member" BsonClassMap.MapMember
JabberwockyDecompiler
  • 3,318
  • 2
  • 42
  • 54
bernam
  • 69
  • 10

2 Answers2

0

This answer should cover it:

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

C# fields are meant to be hidden. Properties expose fields.

Community
  • 1
  • 1
GaTechThomas
  • 5,421
  • 5
  • 43
  • 69
-2

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

MapProperty Creates a member map for a property and adds it to the class map.

MapField
Creates a member map for a field and adds it to the class map.

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

JabberwockyDecompiler
  • 3,318
  • 2
  • 42
  • 54
  • thanks. I was referring to the actual difference in meaning between a "field", a "property" and a "member" .. they all mean the same thing to me! – bernam Jul 14 '15 at 13:48
  • A property has a getter and a setter but field and member are the same thing as far as I'm concerned. – BenCr Sep 15 '15 at 10:30