コード例 #1
0
ファイル: BsonMapper.cs プロジェクト: azraelrabbit/LiteDB
        /// <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]);
        }