Example #1
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="serializingObject"></param>
        /// <param name="property"></param>
        public CombineAndSplitJsonProperty(ISerializingObject serializingObject, PropertyInfo property)
        {
            this.PropertyName  = property.Name;
            this.ValueProvider = new ReflectionValueProvider(property);
            this.Converter     = new CombineAndSplitJsonConvert(serializingObject); //必须提供;
            this.Writable      = true;
            this.Readable      = true;
            this.PropertyType  = property.PropertyType;

            this.ShouldSerialize = new Predicate <object>((xx) => true);
            this.GetIsSpecified  = null; // new Predicate<object>((xx) => true);
            this.SetIsSpecified  = null; // new Predicate<object, object>((xx, yy) => true);
        }
 /// <summary>
 /// 构造函数
 /// </summary>
 /// <param name="serializingObject"></param>
 public CombineAndSplitJsonConvert(ISerializingObject serializingObject)
 {
     this.serializingObject = serializingObject;
 }