Adding a more useful ToString to CMSNode so it's easier to look at in the debugger
[TFS Changeset #65419]
This commit is contained in:
@@ -948,6 +948,20 @@ order by level,sortOrder";
|
||||
if (AfterMove != null)
|
||||
AfterMove(this, e);
|
||||
}
|
||||
|
||||
public override string ToString()
|
||||
{
|
||||
if (Id != int.MinValue || !string.IsNullOrEmpty(Text))
|
||||
{
|
||||
return string.Format("{{ Id: {0}, Text: {1}, ParentId: {2} }}",
|
||||
Id,
|
||||
Text,
|
||||
_parentid
|
||||
);
|
||||
}
|
||||
|
||||
return base.ToString();
|
||||
}
|
||||
}
|
||||
|
||||
public class CMSPreviewNode
|
||||
|
||||
Reference in New Issue
Block a user