1

Closed

Bug with Custom Properties in Exception Print()

description

PrintCustomProperties() needs to change to this:
 
var baseType = typeof(Exception);
 
var properties =
from property in @this.GetType().GetProperties(
    BindingFlags.Instance | BindingFlags.Public)
where property.CanRead
where property.GetGetMethod() != null
where baseType.GetProperty(property.Name) == null
select property;
 
This will allow the properties defined on the current Exception type that's not on the Exception type itself to print.
Closed Feb 12, 2011 at 3:25 AM by jasonrbock
Fixed with the latest check-in

comments