dataparametercollection.cs
来自「.net的数据持久层」· CS 代码 · 共 45 行
CS
45 行
using System;
using System.Collections;
using System.Collections.Specialized;
namespace Platform.Data {
public class DataParameterCollection : NameObjectCollectionBase {
public DataParameterCollection() {
}
public DataParameter this[ int index] {
get { return (DataParameter)this.BaseGet( index ); }
set { this.BaseSet( index, value ); }
}
public DataParameter this[ string name] {
get { return (DataParameter)this.BaseGet( name ); }
set { this.BaseSet( name, value ); }
}
public void Add(DataParameter value ){
this.BaseAdd( value.ParameterName, value);
}
public DataParameter Add(string para, object value){
DataParameter dp = new DataParameter( para, value );
this.Add( dp );
return dp;
}
public void Remove( string name){
this.BaseRemove( name );
}
public void Clear(){
this.BaseClear();
}
public new IEnumerator GetEnumerator() {
return this.BaseGetAllValues().GetEnumerator();
}
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?