⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 orderexpressioncollection.cs

📁 CRM的移动平台代码
💻 CS
字号:
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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -