Home

Cannot Dump user-defined Enum in v4.43.00

Hi,

The following snippet works in Linqpad v4.42.15, but throws NullReferenceException in v4.43.00:

Query is set to "C# Program".

void Main()
{
var c = new MyClass { Num = MyEnum.One };
c.Dump();
}

// Define other methods and classes here
public enum MyEnum
{ One, Two, Three }

public class MyClass
{
public MyEnum Num { get; set; }
}


This is making calling .Dump() on any object containing user-defined Enum to fail.

Comments

Sign In or Register to comment.