Esempio n. 1
0
 internal void ParseJson(AutoCSer.JsonDeSerializer parser)
 {
     if (MemberMap == null)
     {
         MemberMap = AutoCSer.Metadata.MemberMap <valueType> .NewEmpty();
     }
     parser.MemberMap = MemberMap;
     parser.TypeDeSerialize(ref Value);
 }
Esempio n. 2
0
 private void parseJson(AutoCSer.JsonDeSerializer parser)
 {
     if (MemberMap == null)
     {
         MemberMap = new MemberMap <valueType>();
     }
     parser.MemberMap = MemberMap;
     parser.TypeDeSerialize(ref Value);
 }
Esempio n. 3
0
        private unsafe void deSerialize(AutoCSer.JsonDeSerializer parser)
        {
            switch (parser.TypeDeSerialize <int>())
            {
            case 1: Value = null; return;

            case 2: Value = string.Empty; return;

            default: parser.MoveRead(-1); return;
            }
        }