K
Kevin Frey
Hello All,
I want to refer to the Nullable< T > template type in C++/CLI (a header
file) without requiring explicit qualification of the System:: namespace.
So I effectively want to do this (which won't actually compile):
using System::Nullable< T >; // or something to this affect
class MyClass
{
property Nullable< int > MyProperty
{
// ...
}
};
I can't find the right syntax to do this - yes I could use using namespace
System and yes I could qualify the typename (which I have done for the
moment as a workaround).
But it's now an academic exercise for me. Is it possible for a using
declaration to reference a generic class, and what is the syntax?
Nothing I have tried works, such as:
using System::Nullable< T >;
using System::Nullable< typename >;
using System::Nullable< typename T >;
template< typename T > using System::Nullable< T >;
And I can't find anything online or in the documentation.
Thanks
Kevin
I want to refer to the Nullable< T > template type in C++/CLI (a header
file) without requiring explicit qualification of the System:: namespace.
So I effectively want to do this (which won't actually compile):
using System::Nullable< T >; // or something to this affect
class MyClass
{
property Nullable< int > MyProperty
{
// ...
}
};
I can't find the right syntax to do this - yes I could use using namespace
System and yes I could qualify the typename (which I have done for the
moment as a workaround).
But it's now an academic exercise for me. Is it possible for a using
declaration to reference a generic class, and what is the syntax?
Nothing I have tried works, such as:
using System::Nullable< T >;
using System::Nullable< typename >;
using System::Nullable< typename T >;
template< typename T > using System::Nullable< T >;
And I can't find anything online or in the documentation.
Thanks
Kevin