This is the function:
public void Init(System.Type Type) {
this.Type = Type;
BuildFieldAttributes();
BuildDataColumns(FieldAttributes);
}
I've set a breakpoint on the first line (this.Type = Type
) and I want to break when Type.FullName == "Malt.Organisation"
so that's what I've entered in as the condition.
However the following error is displayed when the line is hit:
The condition for a breakpoint failed to execute. The condition was 'Type.FullName == "Malt.Organisation"'. The error returned was 'Inspecting the state of an object in the debuggee of type System.Type is not supported in this context.'
What (obvious) thing am I doing wrong?
PS. A workaround is to add this to the code:
if (Type.FullName == "Malt.Organisation") System.Diagnostics.Debugger.Break();
RunTimeType
or aType
into your method? – IncorrectSystem.Type
as a class with members? Is there an arbitrary list of types that can't be inspected for some reason? And what is "this context", anyway? In what context is inspecting the state of an object of typeSystem.Type
supported? As such, the message just says "Something is wrong.", but it gives no hint about what that something might be. – OsculationSystem.Web.UI.WebControls.BaseCompareValidator.Type
,System.Linq.Expressions.Expression.Type
,System.Drawing.Imaging.PropertyItem.Type
. – Osculation