Exemplo n.º 1
0
        public virtual INodeDataMapper BuildFromPrioritizedList(params INodeDataMapperBuilder[] list)
        {
            INodeDataMapperBuilder builder = list.FirstOrDefault(x => x.CanBuild);

            if (builder.IsNotNull())
            {
                return(builder.BuildMapper());
            }
            else
            {
                throw new NotImplementedException($"Cannot find a suitable way to load node data into field {fieldWrapper.MemberInfo.Name}");
            }
        }