/// <summary> /// Get property mapper between typed .NET class and BsonDocument - Cache results /// </summary> internal Dictionary <string, PropertyMapper> GetPropertyMapper(Type type) { Dictionary <string, PropertyMapper> props; if (_mapper.TryGetValue(type, out props)) { return(props); } _mapper[type] = Reflection.GetProperties(type, this.ResolvePropertyName); return(_mapper[type]); }