문제

We know that C# uses unmanaged code like P/Invoke or CLR implemented code like InternalCall. What I want to know is does mono it self implements a complete CLR or just some unmanaged code or nothing? I can use .Net Reflactor or ILSpy to view managed assembly, but some times due to performance issues I need to know how does CLR implement some unmanaged code. Like: How does System.String.get_lenght() do? Any one can answer questions above or some infomation about this is welcomed. Thanks.

도움이 되었습니까?

해결책

Yes, mono does implement the whole CLR, so if you looked at its code, you would find the implementation of methods like String.get_Length().

But Mono is a different implementation than the Microsoft CLR. What that means is if you look up the code for String.get_Length() in Mono then the Microsoft CLR could have completely different way of doing the same thing.

Another option is looking at Shared Source Common Language Infrastructure. It's from Microsoft and it's probably more similar to their implementation of CLR than Mono, but it still isn't the same. And the newest available version corresponds to .Net 2.0.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top