我的界面如何从inteface中读取arraylist的值?
public interface IDisplayListQueue
{
void BindQueueData();
System.Collections.ArrayList QueueDataSource { get; set; }
}
在页面负荷增加值列出
IDisplayListQueue dataEntryQueue;
dataEntryQueue.QueueDataSource.Add(new { QueueID = queue.QueueID, LinkText = queueName, Uid = sentinel });
页面加载,我想找到的值之后,例如QueueID在dataEntryQueue。
所以,我试图写这样
dataEntryQueue.QueueDataSource.Contains("122");
的代码,我无法找到上述ID,即使它是exits.QueueDataSource值对象和QueueDataSource IA M后不能够获得QueueID属性。
如果你真的使用C#4,你仍然希望使用非泛型'ArrayList'的任何原因? – 2013-02-18 13:51:03
如何在没有非泛型ArrayList的情况下使用? – lakki 2013-02-18 13:54:56
如果没有更多关于你想要达到的信息,很难知道。很可能'IDisplayListQueue'应该是通用的... – 2013-02-18 13:55:43