I\'m having a hard time understanding when to use Object (boxing/unboxing) vs when to use generics.
For example:
public class Stack
{
int positi
Use generics when you want your structure to handle a single type. For example, if you wanted a collection of strings you would want to instantiate a strongly typed List of strings like so:
List myStrings = new List();
If you want it to handle multiple types you can do without generics but you will incur a small performance hit for boxing/unboxing operations.