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.
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
-
Ok, just tried with the Results pane set to Data Grids, and it works.
So, this problem only occurs when the Results pane is set to Rich Text. -
Thanks for reporting - this is now fixed in 4.43.01