22 references to MakeValid
System.Private.Xml (22)
System\Xml\Serialization\CodeIdentifier.cs (3)
30identifier = MakeValid(identifier); 55identifier = MakeValid(identifier); 103return MakeValid(identifier);
System\Xml\Serialization\Compilation.cs (2)
378suffix = CodeIdentifier.MakeValid(types[0]!.Name); 474suffix = CodeIdentifier.MakeValid(mainType.Name);
System\Xml\Serialization\SchemaImporter.cs (1)
105typeName = CodeIdentifier.MakeValid(typeName);
System\Xml\Serialization\Types.cs (1)
914typeDesc = new TypeDesc(type, CodeIdentifier.MakeValid(TypeName(type)), type.ToString(), kind, null, flags, null);
System\Xml\Serialization\XmlSchemaImporter.cs (11)
207member.Name = CodeIdentifier.MakeValid(Accessor.UnescapeName(accessor.Name)); 289identifier = CodeIdentifier.MakeValid(unescapedName); 387typeName = CodeIdentifier.MakeValid(typeName); 1104identifier = CodeIdentifier.MakeValid(Accessor.UnescapeName(element.Name!)); 1336string refElementIdentifier = CodeIdentifier.MakeValid(Accessor.UnescapeName(refElement.Name!)); 1420string name = CodeIdentifier.MakeValid(Accessor.UnescapeName(accessor.Name)); 1470member.Name = CodeIdentifier.MakeValid(Accessor.UnescapeName(accessor.Name)); 1563member.Name = CodeIdentifier.MakeValid(xmlnsMemberName ?? "Namespaces"); 1616identifier = CodeIdentifier.MakeValid(attribute.Name); 1766string constantName = CodeIdentifier.MakeValid(enumeration.Value!); 1816string constantName = CodeIdentifier.MakeValid(element.Name);
System\Xml\Serialization\XmlSerializationGeneratedCode.cs (2)
202baseSerializer = CodeIdentifier.MakeValid(baseSerializer); 241string serializerName = CodeIdentifier.MakeValid(Accessor.UnescapeName(mapping.Accessor.Mapping!.TypeDesc!.Name));
System\Xml\Serialization\XmlSerializationILGen.cs (2)
269baseSerializer = CodeIdentifier.MakeValid(baseSerializer); 314string serializerName = CodeIdentifier.MakeValid(Accessor.UnescapeName(mapping.Accessor.Mapping!.TypeDesc!.Name));