Exemplo n.º 1
0
		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);
		}
Exemplo n.º 2
0
        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);
        }
Exemplo n.º 3
0
 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);
     }
 }
Exemplo n.º 4
0
 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);
 }
Exemplo n.º 5
0
	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);
		}
	}