using System; using System.Collections; using System.Collections.Generic; namespace GisSharpBlog.NetTopologySuite.Console { /// /// Summary description for TestInfoCollection. /// public class TestInfoCollection : List { #region Constructors and Destructor #endregion //#region Public Properties //public TestInfo this[Int32 index] //{ // get { return ((TestInfo) List[index]); } // set { List[index] = value; } //} //#endregion //#region Public Methods //public Int32 Add(TestInfo value) //{ // return (List.Add(value)); //} //public Int32 IndexOf(TestInfo value) //{ // return (List.IndexOf(value)); //} //public void Insert(Int32 index, TestInfo value) //{ // List.Insert(index, value); //} //public void Remove(TestInfo value) //{ // List.Remove(value); //} //public Boolean Contains(TestInfo value) //{ // // If value is not of type TestInfo, this will return false. // return (List.Contains(value)); //} //#endregion //#region Protected Overridable Methods //protected override void OnInsert(Int32 index, Object value) //{ // if (value.GetType() != Type.GetType("ConsoleTestRunner.TestInfo")) // { // throw new ArgumentException("value must be of type TestInfo.", "value"); // } //} //protected override void OnRemove(Int32 index, Object value) //{ // if (value.GetType() != Type.GetType("ConsoleTestRunner.TestInfo")) // { // throw new ArgumentException("value must be of type TestInfo.", "value"); // } //} //protected override void OnSet(Int32 index, Object oldValue, Object newValue) //{ // if (newValue.GetType() != Type.GetType("ConsoleTestRunner.TestInfo")) // { // throw new ArgumentException("newValue must be of type TestInfo.", "newValue"); // } //} //protected override void OnValidate(Object value) //{ // if (value.GetType() != Type.GetType("ConsoleTestRunner.TestInfo")) // { // throw new ArgumentException("value must be of type TestInfo."); // } //} //#endregion } }