After investing ~8 hours on endless search around the google, I have to ask you guys here on the community. Pls help :-)
This is theoretical Q, and I want to understand how this "magic" implemented by Microsoft .Net Core CLR. While I understand how to implement my own code to be able to work on different OS (by using Interface and P/Invoke of specific platform) from the answer: https://stackoverflow.com/a/52297584/10696080
I don't understand how the .Net Core CLR DLLs implements the same functionality. For "RuntimeInformation.OSDescription" or "RuntimeInformation.IsOSPlatform" for example.
By looking on the source code of .Net Core RuntimeInformation class it looks like is not implemented by Interface and P/Invorke , but by some mysterious method.
My findings till here:
I find more general question: .Net Core Multi-Platform underlying framework implementation But is not answers my Q.
The microsoft site also not explains this
Decompiling System.Runtime.InteropServices.RuntimeInformation.dll reveal only empty static properties
Question: Pls advise where can I look for the explanation of how the .Net Core CLR DLLs implements multi-platform support (ot more specifically, how RuntimeInformation.OSDescription works)