I believe you were asking about the equivalent C++/CLI syntax, if so here goes:
generic<typename T> ref class GenericList
{
public:
T GetNext()
{
T temp = T();
return temp;
}
};
In the above code snippet
T()
is identical to
default(T
) in C#, and will generate the exact same msil.