获得BasePageLogic的索引顺序 - GetIndex0IPageUtil
2017-02-18 12:05:47 访问(2958) 赞(0) 踩(0)
/// <summary>
/// 获得BasePageLogic的索引顺序 - GetIndex0IPageUtil
/// </summary>
/// <param name="bp"></param>
/// <param name="OC"></param>
/// <returns></returns>
public int GetIndex0IPageUtil(BasePageLogic bp, OutputConfig OC)
{
List<BasePageLogic> theList = LogicListGet();
if (theList == null)
return 0;
int idx = -1;
foreach (BasePageLogic item in theList)
{
++idx;
if (item == bp)
return idx;
}
return -1;
}
标签:
获得BasePageLogic的索引顺序 - GetIndex0IPageUtil 


上一条:
下一条:
相关评论
发表评论