C # table corresponding to the C ++ data type (Collection and collation 1)

Source: Internet
Author: User
C # table corresponding to the C ++ Data Type
 

C #Call DLLFile parameter table

Wtypes. hIn

Unmanaged CLanguage type

Managed class name

Description

Handle

Void *

System. intptr

32-bit

Byte

Unsigned char

System. byte

8-digit

Short

Short

System. int16

16-bit

Word

Unsigned short

System. uint16

16-bit

Int

Int

System. int32

32-bit

Uint

Unsigned int

System. uint32

32-bit

Long

Long

System. int32

32-bit

Bool

Long

System. int32

32-bit

DWORD

Unsigned long

System. uint32

32-bit

Ulong

Unsigned long

System. uint32

32-bit

Char

Char

System. Char

It is modified with ANSI.

Lpstr

Char *

System. string or system. stringbuilder

It is modified with ANSI.

Lpcstr

Const char *

System. string or system. stringbuilder

It is modified with ANSI.

Lpwstr

Wchar_t *

System. string or system. stringbuilder

Use Unicode.

Lpcwstr

Const wchar_t *

System. string or system. stringbuilder

Use Unicode.

Float

Float

System. Single

32-bit

Double

Double

System. Double

64-bit

 

 

Category

Class Name

Description

Visual BasicData Type

C #Data Type

C ++Managed Extended Data Type

JScriptData Type

Integer

Byte

An unsigned integer of 8 digits.

Byte

Byte

Char

Byte

Sbyte

An 8-bit signed integer.

Does not match Cls.

Sbyte

No built-in type.

Sbyte

Signed Char

Sbyte

Int16

A 16-bit signed integer.

Short

Short

Short

Short

Int32

A 32-bit signed integer.

Integer

Int

Int

-Or-

Long

Int

Int64

A 64-bit signed integer.

Long

Long

_ Int64

Long

Uint16

A 16-bit unsigned integer.

Does not match Cls.

Uint16

No built-in type.

Ushort

Unsigned short

Uint16

Uint32

A 32-bit unsigned integer.

Does not match Cls.

Uint32

No built-in type.

Uint

Unsigned int

-Or-

Unsigned long

Uint32

Uint64

A 64-bit unsigned integer.

Does not match Cls.

Uint64

No built-in type.

Ulong

Unsigned _ int64

Uint64

Floating Point

Single

Single precision (32-bit) floating point number.

Single

Float

Float

Float

Double

Double Precision (64-bit) floating point number.

Double

Double

Double

Double

Logic

Boolean

Boolean (true or false ).

Boolean

Bool

Bool

Bool

Others

Char

Unicode (16-bit) characters.

Char

Char

Wchar_t

Char

Decimal

96-digit decimal value.

Decimal

Decimal

Decimal

Decimal

Intptr

The size depends on the signed integer of the basic platform (32-bit platform and 64-bit platform.

Intptr

No built-in type.

Intptr

No built-in type.

Intptr

No built-in type.

Intptr

Uintptr

The size depends on the unsigned integer of the basic platform (32-bit platform and 64-bit platform ).

Does not match Cls.

Uintptr

No built-in type.

Uintptr

No built-in type.

Uintptr

No built-in type.

Uintptr

Class Object

Object

The root of the object hierarchy.

Object

Object

Object *

Object

String

A fixed-length string of Unicode characters.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.