Copy() protected méthode

protected Copy ( AbstractPropertyConfiguration copy ) : void
copy Glass.Mapper.Configuration.AbstractPropertyConfiguration
Résultat void
        private AbstractSitecoreFieldMapper GetMapper(Type genericArgument, SitecoreFieldConfiguration fieldConfiguration, PropertyInfo propertyInfo, DataMapperResolverArgs args)
        {
            AbstractPropertyConfiguration configCopy = fieldConfiguration.Copy();

            configCopy.PropertyInfo = new FakePropertyInfo(genericArgument, propertyInfo.Name, propertyInfo.DeclaringType);

            var mapper = args.DataMappers.FirstOrDefault(
                    x => x.CanHandle(configCopy, args.Context) && x is AbstractSitecoreFieldMapper) 
                    as AbstractSitecoreFieldMapper;

            if (mapper == null)
            {
                throw new MapperException(Glass.Mapper.ExtensionMethods.Formatted(
                    "No mapper to handle type {0} on property {1} class {2}", 
                    (object)genericArgument.FullName, 
                    (object)propertyInfo.Name, 
                    (object)propertyInfo.ReflectedType.FullName));
            }
            else
            { 
                mapper.Setup(new DataMapperResolverArgs(args.Context, configCopy));
            }

            return mapper;
        }