private static XmlArrayItemAttribute CreateArrayItemAttribute(TypeDesc typeDesc, int nestingLevel) { XmlArrayItemAttribute xmlArrayItem = new XmlArrayItemAttribute(); xmlArrayItem.NestingLevel = nestingLevel; return xmlArrayItem; }