Typedef in C# across several source files
Posted
by Danvil
on Stack Overflow
See other posts from Stack Overflow
or by Danvil
Published on 2010-05-06T15:35:19Z
Indexed on
2010/05/06
15:38 UTC
Read the original article
Hit count: 176
c#
I am writing a C wrapper an would like to use a typedef aquivalent to define some types which should be valid in quite a lot of source files. Those "types" are just different aliases to [u]int16/32/64_t, but are useful to distinguish function parameters.
One could use using MyId=System.Int32;
, but this needs to be redeclared in every file as far as I see... Is there a better way?
© Stack Overflow or respective owner