55 references to CodeIdentifier
dotnet-svcutil-lib (55)
FrameworkFork\Microsoft.Xml\Xml\Serialization\CodeExporter.cs (1)
380return CodeIdentifier.MakeCamel(name) + "Field";
FrameworkFork\Microsoft.Xml\Xml\Serialization\CodeIdentifiers.cs (3)
90return CodeIdentifier.MakeCamel(identifier); 92return CodeIdentifier.MakePascal(identifier); 114if (identifier.Length > CodeIdentifier.MaxIdentifierLength)
FrameworkFork\Microsoft.Xml\Xml\Serialization\SchemaImporter.cs (1)
176typeName = CodeIdentifier.MakeValid(typeName);
FrameworkFork\Microsoft.Xml\Xml\Serialization\SoapReflectionImporter.cs (1)
534itemTypeName = CodeIdentifier.MakePascal(itemTypeName);
FrameworkFork\Microsoft.Xml\Xml\Serialization\SoapSchemaImporter.cs (4)
462arrayMapping.TypeName = "ArrayOf" + CodeIdentifier.MakePascal(itemAccessor.Mapping.TypeName); 523arrayMapping.TypeName = "ArrayOf" + CodeIdentifier.MakePascal(itemAccessor.Mapping.TypeName); 558member.Name = CodeIdentifier.MakeValid(Accessor.UnescapeName(accessor.Name)); 648string constantName = CodeIdentifier.MakeValid(enumeration.Value);
FrameworkFork\Microsoft.Xml\Xml\Serialization\SourceInfo.cs (1)
193Debug.Assert(match.Groups["cast"].Value == CodeIdentifier.GetCSharpName(Type));
FrameworkFork\Microsoft.Xml\Xml\Serialization\Types.cs (3)
172_cSharpName = _type == null ? CodeIdentifier.GetCSharpName(_fullName) : CodeIdentifier.GetCSharpName(_type); 960typeDesc = new TypeDesc(type, CodeIdentifier.MakeValid(TypeName(type)), type.ToString(), kind, null, flags, null);
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlReflectionImporter.cs (1)
1067string uniqueName = name = generateTypeName ? "ArrayOf" + CodeIdentifier.MakePascal(name) : name;
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlSchemaImporter.cs (16)
260member.Name = CodeIdentifier.MakeValid(Accessor.UnescapeName(accessor.Name)); 336identifier = CodeIdentifier.MakeValid(unescapedName); 338identifier += CodeIdentifier.MakePascal(unescapedName); 500typeName = CodeIdentifier.MakeValid(typeName); 1207identifier = CodeIdentifier.MakeValid(Accessor.UnescapeName(element.Name)); 1209identifier += CodeIdentifier.MakePascal(Accessor.UnescapeName(element.Name)); 1399arrayMapping.TypeName = (type.Name == null || type.Name.Length == 0) ? "ArrayOf" + CodeIdentifier.MakePascal(arrayMapping.TypeDesc.Name) : type.Name; 1416arrayMapping.TypeName = (type.Name == null || type.Name.Length == 0) ? "ArrayOf" + CodeIdentifier.MakePascal(itemAccessor.Mapping.TypeDesc.Name) : type.Name; 1439string refElementIdentifier = CodeIdentifier.MakeValid(Accessor.UnescapeName(refElement.Name)); 1527string name = CodeIdentifier.MakeValid(Accessor.UnescapeName(accessor.Name)); 1575member.Name = CodeIdentifier.MakeValid(Accessor.UnescapeName(accessor.Name)); 1667member.Name = CodeIdentifier.MakeValid(xmlnsMemberName == null ? "Namespaces" : xmlnsMemberName); 1715identifier = CodeIdentifier.MakeValid(attribute.Name); 1717identifier += CodeIdentifier.MakePascal(attribute.Name); 1869string constantName = CodeIdentifier.MakeValid(enumeration.Value); 1917string constantName = CodeIdentifier.MakeValid(element.Name);
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlSerializationGeneratedCode.cs (1)
204_writer.Write(CodeIdentifier.GetCSharpName(type));
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlSerializationILGen.cs (4)
265baseSerializer = CodeIdentifier.MakeValid(baseSerializer); 270CodeIdentifier.GetCSharpName(baseSerializer), 306string serializerName = CodeIdentifier.MakeValid(Accessor.UnescapeName(mapping.Accessor.Mapping.TypeDesc.Name)); 311CodeIdentifier.GetCSharpName(serializerName),
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlSerializationWriter.cs (13)
2125return "Write" + (++NextMethodNumber).ToString(null, NumberFormatInfo.InvariantInfo) + "_" + CodeIdentifier.MakeValidInternal(name); 2203CodeIdentifier.CheckValidIdentifier(c.Name); 2419CodeIdentifier.CheckValidIdentifier(member.Name); 2454CodeIdentifier.CheckValidIdentifier(m.Name); 2493CodeIdentifier.CheckValidIdentifier(m.Name); 2518CodeIdentifier.CheckValidIdentifier(m.ChoiceIdentifier.MemberName); 3706CodeIdentifier.CheckValidIdentifier(enumValue); 3953string typeFullName = CodeIdentifier.GetCSharpName(type); 4062_writer.Write(GetStringForTypeof(CodeIdentifier.GetCSharpName(type), collectionUseReflection)); 4067_writer.Write(GetStringForTypeof(CodeIdentifier.GetCSharpName(defaultIndexer.PropertyType), elementUseReflection)); 4079CodeIdentifier.MakeValidInternal(fullName.Replace('.', '_')); 4126CodeIdentifier.CheckValidIdentifier(memberName); 4343CodeIdentifier.CheckValidIdentifier(c.Name);
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlSerializationWriterILGen.cs (6)
609return "Write" + (++NextMethodNumber).ToString(null, NumberFormatInfo.InvariantInfo) + "_" + CodeIdentifier.MakeValidInternal(name); 1078CodeIdentifier.CheckValidIdentifier(member.Name); 1128CodeIdentifier.CheckValidIdentifier(m.Name); 1159CodeIdentifier.CheckValidIdentifier(m.Name); 1178CodeIdentifier.CheckValidIdentifier(m.ChoiceIdentifier.MemberName); 2417CodeIdentifier.CheckValidIdentifier(enumValue);