Partager via


SerializationUtilities.GetValue Method

Definition

Overloads

GetValue<T>(SerializationContext, String)

Converts a string to the given type

GetValue<T>(String)

Converts a string to the given type

GetValue<T>(SerializationContext, String)

Converts a string to the given type

public:
generic <typename T>
 static T GetValue(Microsoft::VisualStudio::Modeling::SerializationContext ^ serializationContext, System::String ^ input);
public static T GetValue<T> (Microsoft.VisualStudio.Modeling.SerializationContext serializationContext, string input);
static member GetValue : Microsoft.VisualStudio.Modeling.SerializationContext * string -> 'T
Public Shared Function GetValue(Of T) (serializationContext As SerializationContext, input As String) As T

Type Parameters

T

Type to convert to.

Parameters

serializationContext
SerializationContext

Contextual information

input
String

The string to convert

Returns

T

The deserialized object

Applies to

GetValue<T>(String)

Converts a string to the given type

public:
generic <typename T>
 static T GetValue(System::String ^ input);
public static T GetValue<T> (string input);
static member GetValue : string -> 'T
Public Shared Function GetValue(Of T) (input As String) As T

Type Parameters

T

Type to convert to.

Parameters

input
String

The string to convert

Returns

T

The deserialized object

Applies to