Mega Code Archive
Generic function allows the type parameter to be deduced
#include "stdafx.h"
using namespace System;
generic < typename T>
void GenericFunction(T t)
{
Console::WriteLine(t);
}
int main()
{
int i;
GenericFunction( 200 );
GenericFunction( 400 );
}