Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Where is String.Intern method in .NET Core?

I've created new .NET Core console application and can not find string interning methods.

Here's an old doc: https://msdn.microsoft.com/en-us/library/system.string.intern(v=vs.110).aspx

like image 470
astef Avatar asked Mar 10 '23 13:03

astef


1 Answers

Taken from the github issues page of IronLanguages (that had the same problem):

String.Intern will be added in .NET Standard 2.0, which will also be implemented by .NET Core:

https://github.com/dotnet/standard/blob/master/netstandard/ref/mscorlib.cs#L3048

The github of corefx seems to support this: one of the missing function is System.String.Intern(System.String) and the issue is tagged as netstandard2.0.

like image 68
xanatos Avatar answered Mar 12 '23 07:03

xanatos