Extreme Optimization™: Complexity made simple.

Math and Statistics
Libraries for .NET

  • Home
  • Features
    • Math Library
    • Vector and Matrix Library
    • Statistics Library
    • Performance
    • Usability
  • Documentation
    • Introduction
    • Math Library User's Guide
    • Vector and Matrix Library User's Guide
    • Data Analysis Library User's Guide
    • Statistics Library User's Guide
    • Reference
  • Resources
    • Downloads
    • QuickStart Samples
    • Sample Applications
    • Frequently Asked Questions
    • Technical Support
  • Order
  • Company
    • About us
    • Testimonials
    • Customers
    • Press Releases
    • Careers
    • Partners
    • Contact us
Introduction
Deployment Guide
Nuget packages
Configuration
Using Parallelism
Expand Mathematics Library User's GuideMathematics Library User's Guide
Expand Vector and Matrix Library User's GuideVector and Matrix Library User's Guide
Expand Data Analysis Library User's GuideData Analysis Library User's Guide
Expand Statistics Library User's GuideStatistics Library User's Guide
Expand Data Access Library User's GuideData Access Library User's Guide
Expand ReferenceReference

Skip Navigation LinksHome»Documentation»Reference»Extreme.Data.Json»JsonFile Class»Methods»ToVector(T) Method

JsonFileToVectorT Method

Extreme Optimization Numerical Libraries for .NET Professional
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
Syntax

C#
VB
C++
F#
Copy
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: VectorT
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).
Exceptions

ExceptionCondition
FileNotFoundException The specified file does not exist.
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.

See Also

Reference

JsonFile Class
Extreme.Data.Json Namespace

Copyright (c) 2004-2023 ExoAnalytics Inc.

Send comments on this topic to support@extremeoptimization.com

Copyright © 2004-2023, Extreme Optimization. All rights reserved.
Extreme Optimization, Complexity made simple, M#, and M Sharp are trademarks of ExoAnalytics Inc.
Microsoft, Visual C#, Visual Basic, Visual Studio, Visual Studio.NET, and the Optimized for Visual Studio logo
are registered trademarks of Microsoft Corporation.