Returns a string containing a vector in JSON format.
Namespace:
Extreme.Data.Json
Assembly:
Extreme.Data.Json (in Extreme.Data.Json.dll) Version: 3.1.0
public static string ToJson<T>(
this Vector<T> vector,
JsonOptions options = null
)
<ExtensionAttribute>
Public Shared Function ToJson(Of T) (
vector As Vector(Of T),
Optional options As JsonOptions = Nothing
) As String
public:
[ExtensionAttribute]
generic<typename T>
static String^ ToJson(
Vector<T>^ vector,
JsonOptions^ options = nullptr
)
[<ExtensionAttribute>]
static member ToJson :
vector : Vector<'T> *
?options : JsonOptions
(* Defaults:
let _options = defaultArg options null
*)
-> string
Parameters
- vector
- Type: Extreme.MathematicsVectorT
The vector to write to the stream. - 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:
StringUsage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
VectorT. 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).
Reference