C/C++
whidbey.txt
Associated article: New Syntax C++ in .NET Version 2
Tags: C/C++
Published source code examples accompanying the article by Richard Grimes in which he examines how generics are declared in Whidbey C++ and how they relate to C++ templates.
New Syntax C++ in .NET Version 2
by Richard Grimes
Listing One
generic <class T>
ref class Test
{
T t;
public:
Test(T a)
{
t = a;
}
String^ ToString() override
{
return String::Format("value is {0}", t->ToString());
}
};
...


