Beispiel #1
0
 public CSJSONObject this[string key] {
     get {
         if (!m_dictObject.ContainsKey(key))
         {
             return(null);
         }
         return(m_dictObject[key]);
     }
     set {
         if (m_dictObject == null)
         {
             f_eObjType = EJSONObjectType.eJOT_Object;
         }
         m_dictObject[key] = value;
     }
 }
Beispiel #2
0
 public CSJSONObject(bool value)
 {
     m_eObjType  = EJSONObjectType.eJOT_Bool;
     m_boolValue = value;
 }
Beispiel #3
0
 public CSJSONObject(float value)
 {
     m_eObjType   = EJSONObjectType.eJOT_Float;
     m_floatValue = value;
 }
Beispiel #4
0
 public CSJSONObject(int value)
 {
     m_eObjType = EJSONObjectType.eJOT_Int;
     m_intValue = value;
 }
Beispiel #5
0
 public CSJSONObject(string value)
 {
     m_eObjType    = EJSONObjectType.eJOT_String;
     m_stringValue = value;
 }