📄 customerscollection.cs
字号:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Collections;
namespace VinciDataAccess.Entity
{
/// <summary>
/// Name:Wicresoft's Vinci Item
/// Author:Tony Tong
/// Time:2008.2.20
/// </summary>
public class CustomersCollection:CollectionBase
{
#region Create the Customers Class Index
public CustomersEntity this[int nIdex]
{
get
{
return (CustomersEntity)List[nIdex];
}
set
{
List[nIdex] = value;
}
}
#endregion
#region Add the Customers's Object into the List congregate
public int Add(CustomersEntity customer)
{
return List.Add(customer);
}
#endregion
#region Prevail the Customers's Object Index With the List.
/// <summary>
/// If this can't find a contain char this Method will return -1
/// </summary>
/// <param name="customer"></param>
/// <returns></returns>
public int IndexOf(CustomersEntity customer)
{
return List.IndexOf(customer);
}
#endregion
#region Add the Customers's Object on the List's Index
public void Insert(int nIdex, CustomersEntity customer)
{
List.Insert(nIdex, customer);
}
#endregion
#region Remove the Customer's Object into the List
public void Remove(CustomersEntity customer)
{
List.Remove(customer);
}
#endregion
#region Judge the Object whether Exist into the List
public bool Contains(CustomersEntity customer)
{
return List.Contains(customer);
}
#endregion
#region Copy the Object to the List's Index location
public void CopyTo(CustomersEntity[] customers, int nIdex)
{
List.CopyTo(customers, nIdex);
}
#endregion
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -