/// <summary> /// Decode RawData type /// </summary> /// <returns></returns> private object DecodeRawData(JsonDecoder jsonDecoder, FieldMetaData fieldMetaData, string fieldName) { if (fieldMetaData.BuiltInType != 0) { try { if (fieldMetaData.ValueRank == ValueRanks.Scalar) { return(DecodeRawScalar(jsonDecoder, fieldMetaData.BuiltInType, fieldName)); } if (fieldMetaData.ValueRank >= ValueRanks.OneDimension) { return(jsonDecoder.ReadArray(fieldName, fieldMetaData.ValueRank, (BuiltInType)fieldMetaData.BuiltInType)); } else { Utils.Trace("JsonDataSetMessage - Decoding ValueRank = {0} not supported yet !!!", fieldMetaData.ValueRank); } } catch (Exception ex) { Utils.Trace(ex, "JsonDataSetMessage - Error reading element for RawData."); return(StatusCodes.BadDecodingError); } } return(null); }