Clear all interned lines in Linqpad?

How to clear all interned lines in linqpad?

In this example:

//var asd="asd";
string s = new string(new  []{'a','s','d'});
Console.WriteLine (string.IsInterned(s));

He always returns nullthat good.

But as soon as I do not notice the first line, it always gives "asd", even if I repeat it again.

It seems the only solution is to close the program and run it again.

ps: in visual studio, it always returns the desired results (console mode).

+3
source share
1 answer

LINQPad supports AppDomain between runs, so anything that is static will remain in memory. You can change this behavior by choosing Change> Settings> Advanced> Always use new application domains .

, , (. ). reset, .

+3

All Articles