mirror of
https://gitee.com/ccnetcore/Yi
synced 2026-03-03 00:00:58 +08:00
17 lines
360 B
C#
17 lines
360 B
C#
|
|
using System;
|
|||
|
|
using System.Collections.Generic;
|
|||
|
|
using System.Linq;
|
|||
|
|
using System.Text;
|
|||
|
|
using System.Threading.Tasks;
|
|||
|
|
|
|||
|
|
namespace Yi.Framework.Common.Helper
|
|||
|
|
{
|
|||
|
|
public static class IdHelper
|
|||
|
|
{
|
|||
|
|
public static dynamic[] ToDynamicArray(this IEnumerable<long> ids)
|
|||
|
|
{
|
|||
|
|
return ids.Select(id => (dynamic)id).ToArray();
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|