Partager via


StringValues.Implicit Operator

Definition

Overloads

Implicit(StringValues to String)

Defines an implicit conversion of a given StringValues to a string, with multiple values joined as a comma separated string.

Implicit(StringValues to String[])

Defines an implicit conversion of a given StringValues to a string array.

Implicit(String to StringValues)

Defines an implicit conversion of a given string to a StringValues.

Implicit(String[] to StringValues)

Defines an implicit conversion of a given string array to a StringValues.

Implicit(StringValues to String)

Source:
StringValues.cs
Source:
StringValues.cs
Source:
StringValues.cs

Defines an implicit conversion of a given StringValues to a string, with multiple values joined as a comma separated string.

public:
 static operator System::String ^(Microsoft::Extensions::Primitives::StringValues values);
public static implicit operator string? (Microsoft.Extensions.Primitives.StringValues values);
static member op_Implicit : Microsoft.Extensions.Primitives.StringValues -> string
Public Shared Widening Operator CType (values As StringValues) As String

Parameters

values
StringValues

A StringValues to implicitly convert.

Returns

Returns null where StringValues has been initialized from an empty string array or is Empty. Otherwise, it returns the implicit conversion of StringValues to a string.

Remarks

Returns null where StringValues has been initialized from an empty string array or is Empty.

Applies to

Implicit(StringValues to String[])

Source:
StringValues.cs
Source:
StringValues.cs
Source:
StringValues.cs

Defines an implicit conversion of a given StringValues to a string array.

public:
 static operator cli::array <System::String ^> ^(Microsoft::Extensions::Primitives::StringValues value);
public static implicit operator string?[]? (Microsoft.Extensions.Primitives.StringValues value);
static member op_Implicit : Microsoft.Extensions.Primitives.StringValues -> string[]
Public Shared Widening Operator CType (value As StringValues) As String()

Parameters

value
StringValues

A StringValues to implicitly convert.

Returns

String[]

Applies to

Implicit(String to StringValues)

Source:
StringValues.cs
Source:
StringValues.cs
Source:
StringValues.cs

Defines an implicit conversion of a given string to a StringValues.

public:
 static operator Microsoft::Extensions::Primitives::StringValues(System::String ^ value);
public static implicit operator Microsoft.Extensions.Primitives.StringValues (string? value);
static member op_Implicit : string -> Microsoft.Extensions.Primitives.StringValues
Public Shared Widening Operator CType (value As String) As StringValues

Parameters

value
String

A string to implicitly convert.

Returns

Applies to

Implicit(String[] to StringValues)

Source:
StringValues.cs
Source:
StringValues.cs
Source:
StringValues.cs

Defines an implicit conversion of a given string array to a StringValues.

public:
 static operator Microsoft::Extensions::Primitives::StringValues(cli::array <System::String ^> ^ values);
public static implicit operator Microsoft.Extensions.Primitives.StringValues (string?[]? values);
static member op_Implicit : string[] -> Microsoft.Extensions.Primitives.StringValues
Public Shared Widening Operator CType (values As String()) As StringValues

Parameters

values
String[]

A string array to implicitly convert.

Returns

Applies to