Converts a list T of type Component to JSON representation.
Namespace: CTCT.UtilAssembly: CTCT (in CTCT.dll) Version: 2.0.0.0 (2.0.0.0)
public static string ToJSON<T>(
this IList<T> list
)
where T : Component
public static string ToJSON<T>(
this IList<T> list
)
where T : Component
<ExtensionAttribute> _
Public Shared Function ToJSON(Of T As Component) ( _
list As IList(Of T) _
) As String
<ExtensionAttribute> _
Public Shared Function ToJSON(Of T As Component) ( _
list As IList(Of T) _
) As String
public:
[ExtensionAttribute]
generic<typename T>
where T : Component
static String^ ToJSON(
IList<T>^ list
)
public:
[ExtensionAttribute]
generic<typename T>
where T : Component
static String^ ToJSON(
IList<T>^ list
)
static member ToJSON :
list : IList<'T> -> string when 'T : Component
static member ToJSON :
list : IList<'T> -> string when 'T : Component
Parameters
- list
- Type: System.Collections.Generic.IList<T>
The string list.
- T
- Type of Component
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<T>. 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).