Beispiel #1
0
        public object Clone()
        {
            object extraInfo;

            if (ExtraInfo is ICloneable cloneable)
            {
                extraInfo = cloneable.Clone();
            }
            else
            {
                extraInfo = ExtraInfo;
            }

            PropItemModel result = new PropItemModel(PropertyType, PropertyName, StorageStrategy, TypeIsSolid, PropKind,
                                                     (ITypeInfoField)PropTypeInfoField?.Clone(),
                                                     (IPropInitialValueField)InitialValueField?.Clone(),
                                                     extraInfo,
                                                     ComparerField,
                                                     ItemType,
                                                     (IPropBinderField)BinderField?.Clone(),
                                                     (IMapperRequest)MapperRequest?.Clone(),
                                                     propCreator: null);

            return(result);
        }
Beispiel #2
0
        public object Clone()
        {
            MapperRequest result = new MapperRequest(SourceType, PropModelFullClassName, ConfigPackageName);

            result.PropModel = PropModel;
            return(result);
        }