80 references to CodeIdentifier
netstandard (1)
netstandard.cs (1)
2381[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Xml.Serialization.CodeIdentifier))]
System.Private.Xml (77)
System\Xml\Serialization\CodeIdentifiers.cs (3)
86return CodeIdentifier.MakeCamel(identifier); 88return CodeIdentifier.MakePascal(identifier); 109if (identifier.Length > CodeIdentifier.MaxIdentifierLength)
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\SoapReflectionImporter.cs (1)
505itemTypeName = CodeIdentifier.MakePascal(itemTypeName);
System\Xml\Serialization\SourceInfo.cs (1)
195Debug.Assert(match.Groups["cast"].Value == CodeIdentifier.GetCSharpName(Type!));
System\Xml\Serialization\Types.cs (3)
167_cSharpName ??= _type == null ? CodeIdentifier.GetCSharpName(_fullName) : CodeIdentifier.GetCSharpName(_type); 914typeDesc = new TypeDesc(type, CodeIdentifier.MakeValid(TypeName(type)), type.ToString(), kind, null, flags, null);
System\Xml\Serialization\XmlReflectionImporter.cs (1)
1070string uniqueName = name = generateTypeName ? $"ArrayOf{CodeIdentifier.MakePascal(name)}" : name;
System\Xml\Serialization\XmlSchemaImporter.cs (16)
207member.Name = CodeIdentifier.MakeValid(Accessor.UnescapeName(accessor.Name)); 289identifier = CodeIdentifier.MakeValid(unescapedName); 291identifier += CodeIdentifier.MakePascal(unescapedName); 387typeName = CodeIdentifier.MakeValid(typeName); 1104identifier = CodeIdentifier.MakeValid(Accessor.UnescapeName(element.Name!)); 1106identifier += CodeIdentifier.MakePascal(Accessor.UnescapeName(element.Name!)); 1296arrayMapping.TypeName = string.IsNullOrEmpty(type.Name) ? $"ArrayOf{CodeIdentifier.MakePascal(arrayMapping.TypeDesc!.Name)}" : type.Name; 1313arrayMapping.TypeName = string.IsNullOrEmpty(type.Name) ? $"ArrayOf{CodeIdentifier.MakePascal(itemAccessor.Mapping.TypeDesc.Name)}" : type.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); 1618identifier += CodeIdentifier.MakePascal(attribute.Name); 1766string constantName = CodeIdentifier.MakeValid(enumeration.Value!); 1816string constantName = CodeIdentifier.MakeValid(element.Name);
System\Xml\Serialization\XmlSerializationGeneratedCode.cs (6)
192_writer.Write(CodeIdentifier.GetCSharpName(type)); 202baseSerializer = CodeIdentifier.MakeValid(baseSerializer); 207_writer.Write(CodeIdentifier.GetCSharpName(baseSerializer)); 241string serializerName = CodeIdentifier.MakeValid(Accessor.UnescapeName(mapping.Accessor.Mapping!.TypeDesc!.Name)); 246_writer.Write(CodeIdentifier.GetCSharpName(serializerName)); 356_writer.Write(CodeIdentifier.GetCSharpName(type));
System\Xml\Serialization\XmlSerializationILGen.cs (4)
269baseSerializer = CodeIdentifier.MakeValid(baseSerializer); 274CodeIdentifier.GetCSharpName(baseSerializer), 314string serializerName = CodeIdentifier.MakeValid(Accessor.UnescapeName(mapping.Accessor.Mapping!.TypeDesc!.Name)); 319CodeIdentifier.GetCSharpName(serializerName),
System\Xml\Serialization\XmlSerializationReader.cs (11)
2469CodeIdentifier.CheckValidIdentifier(mapping.ChoiceIdentifier.MemberName); 2816string.Create(CultureInfo.InvariantCulture, $"Read{++NextMethodNumber}_{CodeIdentifier.MakeValidInternal(name)}"); 2819string.Create(CultureInfo.InvariantCulture, $"id{(++_nextIdNumber)}_{CodeIdentifier.MakeValidInternal(name)}"); 2896CodeIdentifier.CheckValidIdentifier(typeName); 2898if (propName == null) return CodeIdentifier.GetCSharpName(typeName); 2900propName = CodeIdentifier.GetCSharpName(propName); 2940CodeIdentifier.CheckValidIdentifier(constants[i].Name); 3035CodeIdentifier.CheckValidIdentifier(c.Name); 3316CodeIdentifier.CheckValidIdentifier(mapping.Name); 3456CodeIdentifier.CheckValidIdentifier(mapping.Name); 4878CodeIdentifier.CheckValidIdentifier(choice.MemberIds![elementIndex]);
System\Xml\Serialization\XmlSerializationReaderILGen.cs (9)
379CodeIdentifier.CheckValidIdentifier(mapping.ChoiceIdentifier.MemberName); 673string.Create(CultureInfo.InvariantCulture, $"Read{++NextMethodNumber}_{CodeIdentifier.MakeValidInternal(name)}"); 676string.Create(CultureInfo.InvariantCulture, $"id{++_nextIdNumber}_{CodeIdentifier.MakeValidInternal(name)}"); 942CodeIdentifier.CheckValidIdentifier(typeName); 944if (propName == null) return CodeIdentifier.GetCSharpName(typeName); 946propName = CodeIdentifier.GetCSharpName(propName); 1082CodeIdentifier.CheckValidIdentifier(c.Name); 1540CodeIdentifier.CheckValidIdentifier(mapping.Name); 3261CodeIdentifier.CheckValidIdentifier(choice.MemberIds![elementIndex]);
System\Xml\Serialization\XmlSerializationWriter.cs (13)
1733string typeFullName = CodeIdentifier.GetCSharpName(type); 1842_writer.Write(GetStringForTypeof(CodeIdentifier.GetCSharpName(type), collectionUseReflection)); 1847_writer.Write(GetStringForTypeof(CodeIdentifier.GetCSharpName(defaultIndexer.PropertyType), elementUseReflection)); 1858return $"{prefix}{_nextReflectionVariableNumber}_{CodeIdentifier.MakeValidInternal(fullName.Replace('.', '_'))}"; 1905CodeIdentifier.CheckValidIdentifier(memberName); 2123CodeIdentifier.CheckValidIdentifier(c.Name); 2858return string.Create(CultureInfo.InvariantCulture, $"Write{++NextMethodNumber}_{CodeIdentifier.MakeValidInternal(name)}"); 2936CodeIdentifier.CheckValidIdentifier(c.Name); 3154CodeIdentifier.CheckValidIdentifier(member.Name); 3189CodeIdentifier.CheckValidIdentifier(m.Name); 3228CodeIdentifier.CheckValidIdentifier(m.Name); 3253CodeIdentifier.CheckValidIdentifier(m.ChoiceIdentifier.MemberName); 4492CodeIdentifier.CheckValidIdentifier(enumValue);
System\Xml\Serialization\XmlSerializationWriterILGen.cs (6)
593return string.Create(CultureInfo.InvariantCulture, $"Write{++NextMethodNumber}_{CodeIdentifier.MakeValidInternal(name)}"); 1027CodeIdentifier.CheckValidIdentifier(member.Name); 1073CodeIdentifier.CheckValidIdentifier(m.Name); 1104CodeIdentifier.CheckValidIdentifier(m.Name); 1123CodeIdentifier.CheckValidIdentifier(m.ChoiceIdentifier.MemberName); 2282CodeIdentifier.CheckValidIdentifier(enumValue);
System.Xml (1)
System.Xml.cs (1)
106[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Xml.Serialization.CodeIdentifier))]
System.Xml.XmlSerializer (1)
artifacts\obj\System.Xml.XmlSerializer\Debug\net10.0\System.Xml.XmlSerializer.Forwards.cs (1)
4[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Xml.Serialization.CodeIdentifier))]