Ejemplo n.º 1
0
        public int Test3_AutoCheck(TestSerializerModel2 model)
        {
            //if( model.DtValue.HasValue && System.Web.HttpContext.Current.Request.ContentType.StartsWith("application/json") )
            //    model.DtValue = model.DtValue.Value.ToLocalTime();

            string xml1 = model.ToString();
            string xml2 = s_lastTestSerializerModel2.ToString();

            return(xml1 == xml2 ? 1 : 0);
        }
Ejemplo n.º 2
0
        public int Test4_AutoCheck(string stringVal, int?intVal, DateTime?dtValue, decimal?money, Guid?guid)
        {
            //if( dtValue.HasValue && System.Web.HttpContext.Current.Request.ContentType.StartsWith("application/json") )
            //    dtValue = dtValue.Value.ToLocalTime();

            TestSerializerModel2 model = TestSerializerModel2.Create(stringVal, intVal, dtValue, money, guid);

            string xml1 = model.ToString();
            string xml2 = s_lastTestSerializerModel2.ToString();

            return(xml1 == xml2 ? 1 : 0);
        }
Ejemplo n.º 3
0
        public string Test4(string stringVal, int?intVal, DateTime?dtValue, decimal?money, Guid?guid)
        {
            TestSerializerModel2 model = TestSerializerModel2.Create(stringVal, intVal, dtValue, money, guid);

            return(model.ToString());
        }
Ejemplo n.º 4
0
 public string Test3(TestSerializerModel2 model)
 {
     return(model.ToString());
 }