private void Write131_RatingTypeConverter(string n, string ns, RatingTypeConverter o, bool isNullable, bool needType) { if (o == null) { if (isNullable) { base.WriteNullTagLiteral(n, ns); } } else { if (!needType && (o.GetType() != typeof(RatingTypeConverter))) { throw base.CreateUnknownTypeException(o); } base.WriteStartElement(n, ns, o, false, null); if (needType) { base.WriteXsiType("RatingTypeConverter", ""); } base.WriteEndElement(o); } }