| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758 |
- namespace IndexFormula.Finance
- {
- using System;
- using System.Collections;
- using System.Reflection;
- public class AreaCollection : CollectionBase
- {
- public virtual int Add(FormulaArea fa)
- {
- return base.List.Add(fa);
- }
- public int IndexOf(FormulaArea fa)
- {
- return base.List.IndexOf(fa);
- }
- public virtual void Insert(int Index, FormulaArea fa)
- {
- base.List.Insert(Index, fa);
- }
- public void Remove(FormulaArea value)
- {
- base.List.Remove(value);
- }
- public void Remove(string Name)
- {
- base.List.Remove(this[Name]);
- }
- public virtual FormulaArea this[int Index]
- {
- get
- {
- return (FormulaArea) base.List[Index];
- }
- }
- public FormulaArea this[string Name]
- {
- get
- {
- foreach (object obj2 in base.List)
- {
- if (string.Compare(((FormulaArea) obj2).Name, Name, true) == 0)
- {
- return (FormulaArea) obj2;
- }
- }
- return null;
- }
- }
- }
- }
|