private void GenerateAttributeTypeMethods() { var xmlAttributeTypes = _schema.GetAllDeclaredAttributeTypes(); var xmlAttributeTypeCheckMethodGenerator = new XmlAttributeTypeCheckMethodGenerator(_stringBuilder); foreach (var xmlAttributeType in xmlAttributeTypes.OrderBy(t => t.Name)) { xmlAttributeTypeCheckMethodGenerator.GenerateTypeCheckingMethod(xmlAttributeType); } }