When was the last time you took a string factorial or character? Why do you need a factorial like T ??
In addition, it has been said numerous (now 1 million times). When you need to use a generic type, you need to tell the compiler the type.
For example, if I had a generic stack class? C # needs to know the type of elements when creating my stack.
Otherwise, it does not make sense for:
Stack<T> s = new Stack<T>(); s.Push(????);
Instead, you need to specify:
Stack<int> s = new Stack<int>(); s.Push(5); s.Push(7);
source share