A
almurph
Hi,
I want to put the following line of code:
using ItemNo = System.Int32;
into a static "Utilities" class so that it is available for all other
classes in my program. For example:
static class Utilities
{
using ItemNo = System.Int32;
}
But I get the following error message: "Invalid token 'using' in
class, struct, or interface member declaration"
Essentially what I am trying to do is reverse engineer the C language
keyword "typedef" into C#. I need this to be available in several
classes and don't wnat to have to declare it in each class at the
namespace scope.
Would really appreciate any "nice" ways of achieving this. Any
comments/suggestions and code-samples most appreciated.
Thanks,
Al.
I want to put the following line of code:
using ItemNo = System.Int32;
into a static "Utilities" class so that it is available for all other
classes in my program. For example:
static class Utilities
{
using ItemNo = System.Int32;
}
But I get the following error message: "Invalid token 'using' in
class, struct, or interface member declaration"
Essentially what I am trying to do is reverse engineer the C language
keyword "typedef" into C#. I need this to be available in several
classes and don't wnat to have to declare it in each class at the
namespace scope.
Would really appreciate any "nice" ways of achieving this. Any
comments/suggestions and code-samples most appreciated.
Thanks,
Al.