A generic class is a Template class in UML
see What is the correct way to represent template classes with UML?
So can't you use thye Parameterized Class in Visio http://etutorials.org/Programming/UML/Chapter+6.+Class+Diagrams+Advanced+Concepts/Parameterized+Class/