下面是我的代码,出错如下:请问怎么解决这个问题?我的这个IList在几个方法里都用到
======================
private IList<TQL_TopQuestionTitle> ttq = null;
===============================
非泛型 类型“System.Collections.IList”不能与类型参数一起使用

解决方案 »

  1.   

    命名空间...分清楚System.Collections.IList和System.Collections.Generic.IList<T>...两个完全不同的接口...
      

  2.   

    那请问如何解决?我的代码是下面这样的,如何事先我需要的效果?
    private   IList <TQL_TopQuestionTitle>   ttq   =   null; 
    private bool GetTopQuestionData()
        {
            ttq = Listening.GetTopQuestionTitleInfo(_partDisplayOrder, _sectionDisplayOrder, _taskDisplayOrder);
            if (ttq == null)
            {
                XPWY.Utility.WebScript.ShowMessage("获取阅读题面失败");
                return false;
            }
         }
      

  3.   

    using System.Collections.Generic;
      

  4.   

    using System.Collections.Generic;orprivate System.Collections.Generic.IList<TQL_TopQuestionTitle> ttq打好基础...