Created
July 5, 2020 17:38
-
-
Save johnfn/4454528310cb5a3221c81c14074c511e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.Diagnostics; | |
using System.IO; | |
using System.Threading; | |
namespace testingconsole | |
{ | |
class Program | |
{ | |
static void Main(string[] args) | |
{ | |
while (true) | |
{ | |
Thread.Sleep(500); | |
Console.WriteLine("Hello World."); | |
} | |
} | |
private static int ThisBreaksLiveSharp() { | |
var a = new []{1, 2}; | |
dynamic d = a; | |
return d[0]; | |
} | |
} | |
} | |
// LiveSharp: (runtime) error: System.Collections.Generic.KeyNotFoundException: The given key '0' was not present in the dictionary. | |
// at System.Collections.Generic.Dictionary`2.get_Item(TKey key) | |
// at LiveSharp.Runtime.IL.DocumentMetadata.<>c__DisplayClass17_0.<DeserializeTypes>b__2(Int32 t) | |
// at System.Linq.Enumerable.SelectArrayIterator`2.ToArray() | |
// at System.Linq.Enumerable.ToArray[TSource](IEnumerable`1 source) | |
// at LiveSharp.Runtime.IL.DocumentMetadata.DeserializeTypes(XElement[] types) | |
// at LiveSharp.Runtime.IL.DocumentMetadata..ctor(XElement documentElement, VirtualAssembly virtualAssembly, ILogger logger, Func`2 methodFilter) | |
// at LiveSharp.Runtime.LiveSharpRuntime.UpdateDocument(XElement element, Func`2 methodFilter) | |
// at LiveSharp.Runtime.LiveSharpRuntime.LiveSharpMessageReceived(String messageContent, Byte contentType, Int32 groupId) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment