/// <summary> /// Get an Int64 value from the data field. /// </summary> /// <param name='dataField'>Data field object.</param> /// <returns>An Int64 value</returns> public static Int64 GetInt64(this WebDataField dataField) { dataField.CheckDataType(WebDataType.Int64); return(dataField.Value.WebParseInt64()); }
/// <summary> /// Get a Double value from the data field. /// </summary> /// <param name='dataField'>Data field object.</param> /// <returns>An Double value</returns> public static Double GetFloat64(this WebDataField dataField) { dataField.CheckDataType(WebDataType.Float64); return(dataField.Value.WebParseDouble()); }
/// <summary> /// Get a Boolean value from the data field. /// </summary> /// <param name='dataField'>Data field object.</param> /// <returns>An Boolean value</returns> public static Boolean GetBoolean(this WebDataField dataField) { dataField.CheckDataType(WebDataType.Boolean); return(dataField.Value.WebParseBoolean()); }
/// <summary> /// Get a DateTime value from the data field. /// </summary> /// <param name='dataField'>Data field object.</param> /// <returns>An DateTime value</returns> public static DateTime GetDateTime(this WebDataField dataField) { dataField.CheckDataType(WebDataType.DateTime); return(dataField.Value.WebParseDateTime()); }
/// <summary> /// Get an String value from the data field with the specified name. /// </summary> /// <param name='dataField'>Data field object.</param> /// <returns>An String value</returns> public static String GetString(this WebDataField dataField) { dataField.CheckDataType(WebDataType.String); return(dataField.Value); }