orderexpressioncollection.cs
来自「CRM的移动平台代码」· CS 代码 · 共 51 行
CS
51 行
using System;
using Microsoft.Crm.Sandbox.Mobile.CrmServiceSdk;
namespace Microsoft.Crm.Sandbox.Mobile.Helpers.Collection
{
public class OrderExpressionCollection : System.Collections.CollectionBase
{
#region Properties
public OrderExpression this[int index]
{
get
{
return (OrderExpression)List[index];
}
}
#endregion
#region Methods
public void Add(string attributeName, OrderType orderType)
{
OrderExpression order = new OrderExpression();
order.AttributeName = attributeName;
order.OrderType = orderType;
List.Add(order);
}
internal OrderExpression[] ToArray()
{
OrderExpression[] returnArray = new OrderExpression[List.Count];
for (int index = 0; index < returnArray.Length; index++)
{
returnArray[index] = (OrderExpression)List[index];
}
return returnArray;
}
#endregion
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?