Beispiel #1
0
	    protected override bool SerializeClassCustom(string name, object value, ISerializerImpl i,string usermode) {
	        var js = value as IJsonSerializable;
	        if (null != js) {
	            i.CustomWrite = true;
                i.BeginObject("");
	            js.WriteAsJson(i.Output,usermode,null);
                i.EndObject();
	            i.CustomWrite = false;
	            return true;
	        }
	        return false;
	    }
Beispiel #2
0
        protected override bool SerializeClassCustom(string name, object value, ISerializerImpl i, string usermode)
        {
            var js = value as IJsonSerializable;

            if (null != js)
            {
                i.CustomWrite = true;
                i.BeginObject("");
                js.WriteAsJson(i.Output, usermode, null);
                i.EndObject();
                i.CustomWrite = false;
                return(true);
            }
            return(false);
        }
Beispiel #3
0
 protected virtual bool SerializeClassCustom(string name, object value, ISerializerImpl i, string usermode)
 {
     return(false);
 }
Beispiel #4
0
	    protected virtual bool SerializeClassCustom(string name, object value,ISerializerImpl i,string usermode) {
	        return false;
	    }