コード例 #1
0
        public IMapValue GetMapper(IKenticoTreeNode item, ISyncIn attribute)
        {
            Func<IKenticoTreeNode, ISyncIn, IMapValue> mapper;
            if (_mappers.TryGetValue(attribute.GetType(), out mapper))
            {
                return mapper(item, attribute);
            }

            return null;
        }
コード例 #2
0
        public IMapValue GetMapper(IIndexer item, ISyncIn attribute)
        {
            Func<IIndexer, ISyncIn, IMapValue> mapper;
            if (_mappers.TryGetValue(attribute.GetType(), out mapper))
            {
                return mapper(item, attribute);
            }

            return null;
        }