The String
class for older versions should be at http://referencesource.microsoft.com/#mscorlib/system/string.cs. Where can I find the class for .Net Core. And also where can I find StringNative.cpp
which is a base for this?
All the .NET Core source code is on Github, broken into corefx for the BCL beyond the bits that the CLR really depends on and coreclr for the CLR and the core parts of the BCL (like string).
stringnative.cpp
is the native part of the CoreCLR string implementation, and String.cs
contains the managed code.
See more on this question at Stackoverflow