阅读背景:

如何在ICollection中将项添加到特定索引中?

来源:互联网 

Code:

码:

TestItem TI = new TestItem();
ITestItem IC = TI;
controls.TestItems.Add(IC); //This adds the item into the last column, but I need to add this in a particular index

TestItem is a Class  
ITestItem is an Interface 
controls is a local variable
TestItems is a ICollection<ITestItem>
TestItem TI = new TestItem();
ITes



你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: