public List<FileListItem> FileList { get { return fileList; } } public class FileListItem
    {
        private string fileId;
        public string FileID { get { return fileId; } }
        private string displayFileName;
        public string DisplayFileName { get { return displayFileName; } }
        private string saveFileName;
        public string SaveFileName { get { return saveFileName; } }        public FileListItem(string fileId, string displayFileName, string saveFileName)
        {
            this.fileId = fileId;
            this.displayFileName = displayFileName;
            this.saveFileName = saveFileName;
        }
请问上面这行是啥意思。

解决方案 »

  1.   

    public List<FileListItem> FileList { get { return fileList; } }
    一个公共属性 他的值是一个泛型链表,泛型参数是FileListItem.
      

  2.   

    一个只读属性FileList,返回一个泛型List<FileListItem>
      

  3.   

    就是声明一个属性:FileList ,该属性的类型是FileListItem列表!!!!!
      

  4.   

    嗯:是的!没有set就是只读,不能改!
      

  5.   

    就是一个只读集合属性.
    这个只读仅仅是对fileList引用的只读,对里面的对象没有影响.
      

  6.   

    这个集合是只读的。  没有set 
      

  7.   

    属性
    public List<FileListItem> FileList { get { return fileList; } }
    尽可能的使用属性(property),而不是数据成员(field)。
    把所有的字段都设为私有字段,则把它们封装成属性,字段就是作用于整个类的变量。   
    属性的实质是方法(get和set方法),数据安全