Maybe I'm stupid or maybe I am missing the obvious, but I can't find a way
to define a type alias in C# for primitive types (class and interfaces I can
inherit from, no problem). I.e I want to declare a type that is an alias
for, say, int. Conceptually, this is what I want to do:
public MyIntType = int; // won't compile
Anyone knows how to do this?
--
Regards, Peter
to define a type alias in C# for primitive types (class and interfaces I can
inherit from, no problem). I.e I want to declare a type that is an alias
for, say, int. Conceptually, this is what I want to do:
public MyIntType = int; // won't compile
Anyone knows how to do this?
--
Regards, Peter
Comment