public void GetField(string name, GetFieldResponse response, FieldNotFound fail = null) { if(response != null && type == Type.OBJECT) { int index = keys.IndexOf(name); if(index >= 0) { response.Invoke(list[index]); return; } } if(fail != null) fail.Invoke(name); }
public void GetField(string name, GetFieldResponse response, FieldNotFound fail = null) { if (response != null && IsObject) { var index = keys.IndexOf(name); if (index >= 0) { response.Invoke(list[index]); return; } } fail?.Invoke(name); }
private 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(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 (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); } }