private void Write10_ToolStripRenderer(string n, string ns, ToolStripRenderer o, bool isNullable, bool needType) { if (o == null) { if (isNullable) { base.WriteNullTagLiteral(n, ns); } } else if (!needType) { System.Type type = o.GetType(); if (type != typeof(ToolStripRenderer)) { if (type == typeof(ToolStripWrapperRenderer)) { this.Write31_ToolStripWrapperRenderer(n, ns, (ToolStripWrapperRenderer) o, isNullable, true); } else if (type == typeof(BreadcrumbToolStripRenderer)) { this.Write32_BreadcrumbToolStripRenderer(n, ns, (BreadcrumbToolStripRenderer) o, isNullable, true); } else { if (type != typeof(ToolStripButtonRenderer)) { throw base.CreateUnknownTypeException(o); } this.Write11_ToolStripButtonRenderer(n, ns, (ToolStripButtonRenderer) o, isNullable, true); } } } }