Exemplo n.º 1
0
        // Complete
        public PropItemModel
        (
            Type type,
            string name,
            PropStorageStrategyEnum storageStrategy,
            bool typeIsSolid,
            PropKindEnum propKind,
            ITypeInfoField propTypeInfoField,
            IPropInitialValueField initialValueField,
            object extraInfo,
            IPropComparerField comparer,
            Type itemType,
            IPropBinderField binderField,
            IMapperRequest mapperRequest,
            PropCreatorType propCreator
        )
        {
            PropertyType      = type;
            PropertyName      = name;
            ExtraInfo         = extraInfo;
            StorageStrategy   = storageStrategy;
            TypeIsSolid       = typeIsSolid;
            PropKind          = propKind;
            PropTypeInfoField = _propTypeInfoField;
            InitialValueField = initialValueField;
            ComparerField     = comparer;
            _itemType         = itemType;
            _propBinderField  = binderField;
            _mapperRequest    = mapperRequest;
            _propCreator      = propCreator;

            InitialValueCooked = null;
        }
Exemplo n.º 2
0
        public Object Clone()
        {
            ObservableCollection <ITypeInfoField> children = new ObservableCollection <ITypeInfoField>();

            foreach (ITypeInfoField tif in _children)
            {
                ITypeInfoField copy = (ITypeInfoField)tif.Clone();
                children.Add(copy);
            }

            TypeInfoField result = new TypeInfoField(MemberType, TypeName, FullyQualifiedTypeName, WellKnownCollectionType,
                                                     TypeParameter1, TypeParameter2, TypeParameter3, children);

            return(result);
        }