Exemple #1
0
 //---------------------------------------------------------------------------------
 // Content
 //---------------------------------------------------------------------------------
 public JSONInStream Content(string tag, out string value)
 {
     try
     {
         JSONStringFieldValue fieldValue = (JSONStringFieldValue)node.GetField(tag);
         value = fieldValue.value;
     }
     catch (Exception e)
     {
         try
         {
                             #pragma warning disable
             JSONNullFieldValue fieldValue2 = (JSONNullFieldValue)node.GetField(tag);
                             #pragma warning restore
             value = null;
         }
         catch (Exception e2)
         {
             Debug.LogError("Error JSONInStream " + tag + " " + e.ToString() + " " + e2.ToString());
             value = null;
             return(null);
         }
     }
     return(this);
 }
Exemple #2
0
 public bool Has(string tag)
 {
     return(node.GetField(tag) != null);
 }