本文整理汇总了C#中AggregateType类的典型用法代码示例。如果您正苦于以下问题:C#AggregateType类的具体用法?C#AggregateType怎么用?C#AggregateType使用的例子?这里精选的类代码示例或许可以为您提供帮助。
示例1:Aggregate
publicoverrideobjectAggregate(int[]records,AggregateTypekind)
{
try
{
switch(kind)
{
caseAggregateType.First:
if(records.Length>0)
{
return_values[records[0]];
}
returnnull;//nodata=>null
caseAggregateType.Count:
intcount=0;
for(inti=0;i
原文链接:http://www.jxszl.com/biancheng/C/556499.html