Json File.To Vector<T> Method
Reads a vector from a string in JSON format.
Definition
Namespace: Numerics.NET.Data.Json
Assembly: Numerics.NET.Data.Json (in Numerics.NET.Data.Json.dll) Version: 4.0.3
C#
The data frame that was read from jsonText.
Assembly: Numerics.NET.Data.Json (in Numerics.NET.Data.Json.dll) Version: 4.0.3
public static Vector<T> ToVector<T>(
this string jsonText,
JsonOptions options = null
)
Parameters
- jsonText String
- A string containing the serialized data frame.
- options JsonOptions (Optional)
- A JsonOptions object that specifies the options to use when reading the file.
Type Parameters
- T
- The element type of the vector.
Return Value
Vector<T>The 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).Remarks
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.
Exceptions
File | The specified file does not exist. |