SetShouldSerializeMethod() public method

Sets the method that will be called to determine whether the member should be serialized.
public SetShouldSerializeMethod ( bool>.Func shouldSerializeMethod ) : BsonMemberMap
shouldSerializeMethod bool>.Func The method.
return BsonMemberMap
コード例 #1
0
		public void Apply(BsonMemberMap memberMap)
		{
			if (memberMap.MemberName.StartsWith("_"))
				memberMap.SetShouldSerializeMethod(o => false);
		}