Are .net Enums blittable types? (Marshalling)

前端 未结 3 1695
名媛妹妹
名媛妹妹 2021-01-03 02:18

Apparently there\'s a list of blittable types and so far I don\'t see Enums specifically on it. Are they blittable in general? Or does it depend on whether they are declared

3条回答
  •  再見小時候
    2021-01-03 03:14

    Enum types themselves are not blittable (since they do not have counterpart in unmanaged world) but the values are.

提交回复
热议问题