How to see code of method which marked as MethodImplOptions.InternalCall?

后端 未结 3 1142
南旧
南旧 2020-12-06 10:34

When use ILSpy to check the code of System.String, I found there are some methods marked as MethodImplOptions.InternalCall such as:

[SecurityCritical]
[Metho         


        
3条回答
  •  春和景丽
    2020-12-06 10:58

    Since now CoreCLR is open source, so we could check out the internal code.

    You could search COMString::CompareOrdinalEx keyword in stringnative.cpp to see the internal implementation.

提交回复
热议问题