Converts a list of strings to JSON representation.
Namespace: CTCT.UtilAssembly: CTCT (in CTCT.dll) Version: 2.0.0.0 (2.0.0.0)
public static string ToJSON(
this IList<string> list
)
public static string ToJSON(
this IList<string> list
)
<ExtensionAttribute> _
Public Shared Function ToJSON ( _
list As IList(Of String) _
) As String
<ExtensionAttribute> _
Public Shared Function ToJSON ( _
list As IList(Of String) _
) As String
public:
[ExtensionAttribute]
static String^ ToJSON(
IList<String^>^ list
)
public:
[ExtensionAttribute]
static String^ ToJSON(
IList<String^>^ list
)
static member ToJSON :
list : IList<string> -> string
static member ToJSON :
list : IList<string> -> string
Parameters
- list
- Type: System.Collections.Generic.IList<String>
The string list.
Return Value
Returns the JSON representation of the list.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
IList<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).