Unicoen.Model.UnifiedElement.Write C# (CSharp) Method

Write() private static method

private static Write ( object obj, string content, StringBuilder buffer, int depth ) : void
obj object
content string
buffer System.Text.StringBuilder
depth int
return void
		private static void Write(
				object obj, string content, StringBuilder buffer, int depth) {
			for (int i = 0; i < depth; i++) {
				buffer.Append("  ");
			}
			if (obj != null) {
				buffer.Append(obj.GetType().Name + ": ");
				buffer.AppendLine(content);
			} else {
				buffer.Append("null: ");
				buffer.AppendLine(content);
			}
		}