Default public Topic; Item( int index) {
get {
return CType(List(index), Topic);
}
set { ( value as Topic)
List(index) = value;
}
}
get {
return CType(List(index), Topic);
}
set { ( value as Topic)
List(index) = value;
}
}
解决方案 »
- 如果把一个数组复制到list<string>中
- C# 套接编程,如何自动局域网中打开的客户端。
- 有关C#书籍的讨论!
- 急!!!请各位帮忙!!!!
- 救命,ASP.NET C#,B/S在线模拟考试系统的设计思路(具体生成试卷那里)
- 小弟初学C#,正在做视频音频信号的采集,有没有哪位大侠能指点一二呀,先谢了
- 如何修改Xml文件的问题,帮忙!!!!!
- [C#]一个关于TextBox的问题
- 厦门软件龙头企业一夜失色 --- (近百名员工合法权益何处申讨)
- 如何把table里的内容写入数据库又读出来
- 请高手来讲解一下控件签名是怎么一回事,有什么作用,如何实现
- 了解一下大家用c#开发所用的电脑 其配置如何?我的很慢 想对比一下
using System.Collections;namespace InformationClass
{
/// <summary>
/// Users 的摘要说明。
/// </summary>
public class Users:System.Collections.CollectionBase
{
}
.......
//属性定义
public User this[int index]
{
get
{
return (User) List[index];
}
}
get {
return CType(List(index), Topic);
}
set { ( value as Topic)
List(index) = value;
}
}语法错误?不知道还有什么方法,能不能不用索引器完成Item属性??
{
get { return List[index] as Topic; }
set { List[index] = value; }
}
一个参数;
public Topic this[int index]
{
get { return List[index] as Topic; }
set { List[index] = value; }
}
多个参数
public Topic this[int i,int y]
{
get { return List[i,j] as Topic; }
set { List[i,j] = value; }
}