v3.4.6
This commit is contained in:
@@ -693,4 +693,25 @@ public static partial class Extensions
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region List
|
||||
|
||||
/// <summary>
|
||||
/// 嵌套List解析
|
||||
/// 仅限于列表查询条件多选.
|
||||
/// </summary>
|
||||
/// <param name="list"></param>
|
||||
/// <returns></returns>
|
||||
public static List<string> ParseToNestedList(this List<List<string>> list)
|
||||
{
|
||||
List<string> result = new List<string>();
|
||||
if (list != null && list.Count > 0)
|
||||
{
|
||||
foreach (var item in list)
|
||||
result.Add(item.Last());
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
#endregion
|
||||
}
|
||||
Reference in New Issue
Block a user