What is equivalent to unsigned long int in C #?

I have a C structure that is defined as follows:

typedef struct {

    unsigned long int a;

} TEST;

I want to create the C # equivalent of this structure?

Any help? What bothers me is that the "unsigned long int" is at least 32-bit, which means it is either 32-bit, or 64-bit, or 16-bit, right?

+4
source share
1 answer

You want uinteither ulongdepending on what intor longwas on your native C platform:

  • C # uint- 32 bits
  • C # ulong- 64 bit

, C, , C . #, , ( , Java Javascript), , VM (CLR #). .

+7

Source: https://habr.com/ru/post/1524744/


All Articles