JsonHelperListToJsonT Method (IListT, String) | Helper帮助文档 |
List转换成Json
Namespace: HD.Common
Assembly: HD.Common (in HD.Common.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
public static string ListToJson<T>( IList<T> list, string jsonName )
Public Shared Function ListToJson(Of T) ( list As IList(Of T), jsonName As String ) As String
public: generic<typename T> static String^ ListToJson( IList<T>^ list, String^ jsonName )
static member ListToJson : list : IList<'T> * jsonName : string -> string
Parameters
- list
- Type: System.Collections.GenericIListT
[Missing <param name="list"/> documentation for "M:HD.Common.JsonHelper.ListToJson``1(System.Collections.Generic.IList{``0},System.String)"]
- jsonName
- Type: SystemString
[Missing <param name="jsonName"/> documentation for "M:HD.Common.JsonHelper.ListToJson``1(System.Collections.Generic.IList{``0},System.String)"]
Type Parameters
- T
[Missing <typeparam name="T"/> documentation for "M:HD.Common.JsonHelper.ListToJson``1(System.Collections.Generic.IList{``0},System.String)"]
Return Value
Type: String[Missing <returns> documentation for "M:HD.Common.JsonHelper.ListToJson``1(System.Collections.Generic.IList{``0},System.String)"]
See Also