命名空间: Microsoft.TeamFoundation.Build.Common
程序集: Microsoft.TeamFoundation.Build.Common(在 Microsoft.TeamFoundation.Build.Common.dll 中)
语法
声明
<ExtensionAttribute> _
Public Shared Function Buffer(Of TSource) ( _
source As IEnumerable(Of TSource), _
size As Integer, _
share As Boolean _
) As IEnumerable(Of IList(Of TSource))
public static IEnumerable<IList<TSource>> Buffer<TSource>(
this IEnumerable<TSource> source,
int size,
bool share
)
类型参数
- TSource
参数
- source
类型:System.Collections.Generic.IEnumerable<TSource>
- size
类型:System.Int32
- share
类型:System.Boolean
返回值
类型:System.Collections.Generic.IEnumerable<IList<TSource>>
使用说明
在 Visual Basic 和 C# 中,可以在 IEnumerable<TSource> 类型的任何对象上将此方法作为实例方法来调用。当使用实例方法语法调用此方法时,请省略第一个参数。有关详细信息,请参阅 扩展方法 (Visual Basic) 或 扩展方法(C# 编程指南)。
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关详细信息,请参阅 通过部分受信任的代码使用库。