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