fieldpropcollection.cs

来自「.net的数据持久层」· CS 代码 · 共 39 行

CS
39
字号
using System;
using System.Collections;
using System.Collections.Specialized;

namespace Platform.Data {

	public class FieldPropCollection : NameObjectCollectionBase {

		public FieldPropCollection() {
		}

		public FieldProp this[ int index] {
			get { return (FieldProp)this.BaseGet( index ); }
			set { this.BaseSet( index, value ); }
		}

		public FieldProp this[ string name] {
			get { return (FieldProp)this.BaseGet( name ); }
			set { this.BaseSet( name, value ); }
		}

		public void Add(FieldProp value ){
			this.BaseAdd( value.PropertyName, value);
		}

		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 + -
显示快捷键?