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); }
public object Clone() { MapperRequest result = new MapperRequest(SourceType, PropModelFullClassName, ConfigPackageName); result.PropModel = PropModel; return(result); }