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
		public void Apply(BsonMemberMap memberMap)
		{
			if (memberMap.MemberName.StartsWith("_"))
				memberMap.SetShouldSerializeMethod(o => false);
		}