Where does nativeGetUninitializedObject actually exist?

前端 未结 2 988
-上瘾入骨i
-上瘾入骨i 2021-01-19 20:05

I was curious about some serialization stuff so I went poking around FormatterServices and found a method called nativeGetUninitializedObject that

2条回答
  •  小鲜肉
    小鲜肉 (楼主)
    2021-01-19 20:45

    This method actually exists in the native portion of the CLR. The MethodImplOptions.InternalCall signifies a call which is forwarded to the CLR native code and is implemented there.

    From MSDN:

    Specifies an internal call. An internal call is a call to a method that is implemented within the common language runtime itself.

提交回复
热议问题