CIL有一些指令比如ldc.r8 <float64 (num)>, ldc.r4 <float32 (num)>, ldc.i8 <int64 (num)>, ldc.i4.s <int8 (num)>
将常量加载到堆栈中。
那么,在 C# 中,这些数据类型 ( int32, int64, float32, float64
) 的等效项是什么?
最佳答案
C# type CIL type .NET Framework type
============================================
short int16 System.Int16
int int32 System.Int32
long int64 System.Int64
float float32 System.Single
double float64 System.Double
关于c# - CIL 数据类型及其在 C# 中的等价物,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12882341/