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