Reads a vector from a string in JSON format.
Namespace:
Extreme.Data.Json
Assembly:
Extreme.Data.Json (in Extreme.Data.Json.dll) Version: 3.1.0
public static Vector<T> ToVector<T>(
this string jsonText,
JsonOptions options = null
)
<ExtensionAttribute>
Public Shared Function ToVector(Of T) (
jsonText As String,
Optional options As JsonOptions = Nothing
) As Vector(Of T)
public:
[ExtensionAttribute]
generic<typename T>
static Vector<T>^ ToVector(
String^ jsonText,
JsonOptions^ options = nullptr
)
[<ExtensionAttribute>]
static member ToVector :
jsonText : string *
?options : JsonOptions
(* Defaults:
let _options = defaultArg options null
*)
-> Vector<'T>
Parameters
- jsonText
- Type: SystemString
A string containing the serialized data frame. - options (Optional)
- Type: Extreme.Data.JsonJsonOptions
A JsonOptions object
that specifies the options to use when reading the file.
Type Parameters
- T
- The element type of the vector.
Return Value
Type:
VectorTThe data frame that was read from
jsonText.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
String. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).
The element type of the stored vector does not have
to match the element type of the returned vector.
However, casting values from this type to
type T must succeed.
Reference