public abstract System.Data.IDbDataParameter Parameters[int i]
{
get{}
}
{
get{}
}
解决方案 »
- 帮忙看看 这种情况要怎么写
- 事件不响应,没有弹簧效果,感觉好像按不下去,但有WM_LBUTTONUP消息
- asp.net(C#)禁止复制的代码?
- 急等一个不太复杂的问题?
- 100分!!难道报表一定要用代码拼吗?就不能图形界面画?
- 数据类型的问题~!!请高手们帮忙~!!!
- 关于水晶报表的问题,请大侠们帮忙解决!!!!
- VB6 调用 C#.Net 的 DLL 提示 ActiveX component can't create object, 请帮忙看下如何解决
- 寻求帮助
- 低级问题--如何使web上的按钮事件执行时,页面不刷新?
- 属性和字段我不是很明白,请哪个大哥花点时间帮我讲讲
- 请教高人Process类传参调用winform
using System;
class IndexerClass
{
private int [] myArray = new int[100];
public int this [int index] // Indexer declaration
{
get
{
// Check the index limits.
if (index < 0 || index >= 100)
return 0;
else
return myArray[index];
}
set
{
if (!(index < 0 || index >= 100))
myArray[index] = value;
}
}
}public class MainClass
{
public static void Main()
{
IndexerClass b = new IndexerClass();
// Call the indexer to initialize the elements #3 and #5.
b[3] = 256;
b[5] = 1024;
for (int i=0; i<=10; i++)
{
Console.WriteLine("Element #{0} = {1}", i, b[i]);
}
}
}
{
public BorrowRequest this[ int index ]
{
get
{
return( (BorrowRequest) List[index] );
}
set
{
List[index] = value;
}
}
public int Add( BorrowRequest value )
{
return( List.Add( value ) );
} public int IndexOf( BorrowRequest value )
{
return( List.IndexOf( value ) );
} public void Insert( int index, BorrowRequest value )
{
List.Insert( index, value );
} public void Remove( BorrowRequest value )
{
List.Remove( value );
}
public bool Contains( BorrowRequest value )
{
return( List.Contains( value ));
} public BorrowRequests()
{
//
// TODO: 在此处添加构造函数逻辑
//
}
{
get{ ... }
}然后再自己写个ParameterCollection类
实现:
IDbParameterCollection this [int index]
{
get
}