Exemple #1
0
        public object Clone()
        {
            var dest = new ValueOverride <TKey>();

            dest.Key         = (TKey)Key?.Clone();
            dest.ValueString = ValueString;

            return(dest);
        }
        protected override object CreateInstance(Type itemType)
        {
            if (itemType == typeof(ValueOverride <ItemKey>))
            {
                var item = new ValueOverride <ItemKey>();
                item.Key = new ItemKey();
                return(item);
            }

            return(base.CreateInstance(itemType));
        }