开发者

Blittable Value Types

开发者 https://www.devze.com 2022-12-24 11:08 出处:网络
Here is a list of blittable types.It contains Int32 and Int64.But I don\'t see just plain \"int\" on the list.How does C# treat the plain \"int\" type?Does it just get replaced with Int32 or Int64 dep

Here is a list of blittable types. It contains Int32 and Int64. But I don't see just plain "int" on the list. How does C# treat the plain "int" type? Does it just get replaced with Int32 or Int64 depending on the system? Or is there a 开发者_高级运维subtle difference? Will using "int" ever cause a performance hit for marshalling?


int is an alias for Int32. So no, there won't be a performance hit when using one vs. the other.


int is a C# keyword that maps to the System.Int32 struct. There are no plans (AFAIK) to migrate it to Int64.

0

精彩评论

暂无评论...
验证码 换一张
取 消