private bool GetField(string field, string name, FieldNotFound fail = null) { if (IsObject) { int index = keys.IndexOf(name); if (index >= 0) { field = list[index].str; return(true); } } if (fail != null) { fail.Invoke(name); } return(false); }
public bool GetField(ref long field, string name, FieldNotFound fail = null) { if (IsObject) { int index = keys.IndexOf(name); if (index >= 0) { field = (long)list[index].n; return(true); } } if (fail != null) { fail.Invoke(name); } return(false); }
public bool GetField(ref bool field, string name, FieldNotFound fail = null) { if (type == Type.OBJECT) { int index = keys.IndexOf(name); if (index >= 0) { field = list[index].b; return(true); } } if (fail != null) { fail.Invoke(name); } return(false); }
public void GetField(ref double field, string name, FieldNotFound fail = null) { #endif if (type == JSONObject.Type.OBJECT) { int index = keys.IndexOf(name); if (index >= 0) { field = list[index].n; return; } } if (fail != null) { fail.Invoke(name); } }
//#if USEFLOAT public void GetField(ref float field, string name, FieldNotFound fail = null) { //#else //public void GetField(ref double field, string name, FieldNotFound fail = null) { //#endif if (type == Type.OBJECT) { int index = keys.IndexOf(name); if (index >= 0) { field = list [index].f; return; } } if (fail != null) { fail.Invoke(name); } }
public bool GetField(ref string field, string name, FieldNotFound fail = null) { if (IsObject) { int index = keys.IndexOf(name); if (index >= 0) { field = list[index].str; return true; } } if (fail != null) fail.Invoke(name); return false; }
public bool GetField(ref double field, string name, FieldNotFound fail = null) { #endif if (type == Type.OBJECT) { int index = keys.IndexOf(name); if (index >= 0) { field = list[index].n; return true; } } if (fail != null) fail.Invoke(name); return false; }
public bool GetField(ref float field, string name, FieldNotFound fail = null) {
public void GetField(ref float field, string name, FieldNotFound fail) {
public void GetField (string name, GetFieldResponse response, FieldNotFound fail) { if (response != null && type == JSONType.OBJECT) { int index = keys.IndexOf(name); if (index >= 0) { response.Invoke(list[index]); return; } } if(fail != null) { fail.Invoke(name); } }
public void GetField (ref string field, string name, FieldNotFound fail) { if (type == JSONType.OBJECT) { int index = keys.IndexOf(name); if (index >= 0) { field = list[index].str; return; } } if (fail != null) { fail.Invoke(name); } }
public bool GetField(ref uint field, string name, FieldNotFound fail = null) { if(type == JSONObject.Type.OBJECT) { int index = keys.IndexOf(name); if(index >= 0) { field = (uint)list[index].n; return true; } } if(fail != null) fail.Invoke(name); return false; }
public void GetField(ref double field, string name, FieldNotFound fail = null) { #endif if(type == JSONObject.Type.OBJECT) { int index = keys.IndexOf(name); if(index >= 0){ field = list[index].n; return; } } if(fail != null) fail.Invoke(name); }
public void GetField(string name, GetFieldResponse response, FieldNotFound fail = null) { if (response != null && IsObject) { int index = keys.IndexOf(name); if (index >= 0) { response.Invoke(list[index]); return; } } if (fail != null) fail.Invoke(name); }
public void GetField(ref uint field, string name, FieldNotFound fail = null) { if(type == Type.OBJECT) { int index = keys.IndexOf(name); if(index >= 0) { field = (uint)list[index].n; return; } } if(fail != null) fail.Invoke(name); }
private bool GetField(float field, string name, FieldNotFound fail = null) {