70-536. Parameter T . what is that?

ijas1981ijas1981 Member Posts: 19 ■□□□□□□□□□
I'm unable to understand parameter T.

70-536 self prep kit page 245 .



using System.Collections.Generic;
using System.Collections.Specialized;
using System;
using System.Collections;



public class MyList<T> : System.Collections.ICollection, System.Collections.IEnumerable
{
public static void main(string[] args)
{
Console.WriteLine("hi");
Console.Read();

}
//
private ArrayList _innerList = new ArrayList();

public void Add(T val)
{
_innerList.Add(val);
}

public T this[int index]
{
get
{
return (T)_innerList[index];
}
}



// ICollection Members

#region ICollection Members

void System.Collections.ICollection.CopyTo(System.Array array, int index)
{
throw new System.Exception("The method or operation is not implemented.");
}

int System.Collections.ICollection.Count
{
get { throw new System.Exception("The method or operation is not implemented."); }
}

bool System.Collections.ICollection.IsSynchronized
{
get { throw new System.Exception("The method or operation is not implemented."); }
}

object System.Collections.ICollection.SyncRoot
{
get { throw new System.Exception("The method or operation is not implemented."); }
}

#endregion
// //

// IEnumerable Members

#region IEnumerable Members

System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator()
{
throw new System.Exception("The method or operation is not implemented.");
}

#endregion
// //


}

icon_confused.gif

Comments

Sign In or Register to comment.