JSONObject.GetField C# (CSharp) Method

GetField() public method

public GetField ( float &field, string name, FieldNotFound fail = null ) : void
field float
name string
fail FieldNotFound
return void
	public void GetField(ref float field, string name, FieldNotFound fail = null) {
#else

Same methods

JSONObject::GetField ( string name ) : JSONObject,
JSONObject::GetField ( bool &field, string name, FieldNotFound fail = null ) : void
JSONObject::GetField ( double &field, string name, FieldNotFound fail = null ) : void
JSONObject::GetField ( int &field, string name, FieldNotFound fail = null ) : void
JSONObject::GetField ( string name, GetFieldResponse response, FieldNotFound fail = null ) : void
JSONObject::GetField ( string &field, string name, FieldNotFound fail = null ) : void
JSONObject::GetField ( uint &field, string name, FieldNotFound fail = null ) : void

Usage Example

 public MovementDown(JSONObject js) : base()
 {
     _id = (int)js.GetField(js.keys[0]).n;
     _movement = (int)js.GetField(js.keys[1]).n;
     NbTurn = (int)js.GetField("nbTurn").n;
     ApplyReverseEffect = true;
 }
All Usage Examples Of JSONObject::GetField