private DebugHierarchy ( int level ) : string | ||
level | int | |
return | string |
internal string DebugHierarchy(int level) { string text = string.Empty; string text2 = string.Empty; for (int i = 0; i < level; i++) { text += " "; } text2 = string.Concat(new object[] { text2, text, this.ToString(), " p:", this.position }); if (this.children.Length > 0) { text2 += " {\n"; View[] children = this.children; for (int j = 0; j < children.Length; j++) { View view = children[j]; text2 += view.DebugHierarchy(level + 2); } text2 = text2 + text + " }\n"; } else { text2 += "\n"; } return(text2); }