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; }
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; }