94 references to CodeIdentifier
System.Web.Services (12)
System\Web\Services\Description\HttpProtocolImporter.cs (1)
104
parameter.Name =
CodeIdentifier
.MakeValid(XmlConvert.DecodeName(part.Name));
System\Web\Services\Description\MimeTextImporter.cs (3)
35
methodName =
CodeIdentifier
.MakeValid(ImportContext.OperationBinding.Name);
64
string name = members.AddUnique(
CodeIdentifier
.MakeValid(match.Name.Length == 0 ? methodName + "Match" : match.Name), match);
105
fieldTypeName = ImportContext.ClassNames.AddUnique(
CodeIdentifier
.MakeValid(match.Type.Length == 0 ? name : match.Type), match);
System\Web\Services\Description\ProtocolImporter.cs (3)
146
return
CodeIdentifier
.MakeValid(XmlConvert.DecodeName(Operation.Name));
382
className = "I" +
CodeIdentifier
.MakePascal(className);
386
className = ClassNames.AddUnique(
CodeIdentifier
.MakeValid(className), null);
System\Web\Services\Description\SoapProtocolImporter.cs (4)
91
parameter.name = identifiers.MakeUnique(
CodeIdentifier
.MakeValid(parameter.mapping.MemberName));
590
string fieldName =
CodeIdentifier
.MakeValid(mapping.ElementName);
722
string methodName =
CodeIdentifier
.MakeValid(XmlConvert.DecodeName(this.Operation.Name));
726
string uniqueMethodName = MethodNames.AddUnique(
CodeIdentifier
.MakeValid(XmlConvert.DecodeName(methodName)), this.Operation);
System\Web\Services\Description\WebCodeGenerator.cs (1)
133
return
CodeIdentifier
.MakeCamel(name) + "Field";
System.Xml (82)
System\Xml\Serialization\CodeExporter.cs (1)
327
return
CodeIdentifier
.MakeCamel(name) + "Field";
System\Xml\Serialization\CodeIdentifiers.cs (3)
81
return
CodeIdentifier
.MakeCamel(identifier);
83
return
CodeIdentifier
.MakePascal(identifier);
101
if (identifier.Length >
CodeIdentifier
.MaxIdentifierLength) {
System\Xml\Serialization\Compilation.cs (2)
360
suffix =
CodeIdentifier
.MakeValid(types[0].Name);
464
suffix =
CodeIdentifier
.MakeValid(types[0].Name);
System\Xml\Serialization\SchemaImporter.cs (1)
159
typeName =
CodeIdentifier
.MakeValid(typeName);
System\Xml\Serialization\SoapReflectionImporter.cs (1)
479
itemTypeName =
CodeIdentifier
.MakePascal(itemTypeName);
System\Xml\Serialization\SoapSchemaImporter.cs (4)
413
arrayMapping.TypeName = "ArrayOf" +
CodeIdentifier
.MakePascal(itemAccessor.Mapping.TypeName);
466
arrayMapping.TypeName = "ArrayOf" +
CodeIdentifier
.MakePascal(itemAccessor.Mapping.TypeName);
497
member.Name =
CodeIdentifier
.MakeValid(Accessor.UnescapeName(accessor.Name));
575
string constantName =
CodeIdentifier
.MakeValid(enumeration.Value);
System\Xml\Serialization\SourceInfo.cs (1)
170
Debug.Assert(match.Groups["cast"].Value ==
CodeIdentifier
.GetCSharpName(Type));
System\Xml\Serialization\Types.cs (3)
160
cSharpName = type == null ?
CodeIdentifier
.GetCSharpName(fullName) :
CodeIdentifier
.GetCSharpName(type);
830
typeDesc = new TypeDesc(type,
CodeIdentifier
.MakeValid(TypeName(type)), type.ToString(), kind, null, flags, null);
System\Xml\Serialization\XmlReflectionImporter.cs (1)
932
string uniqueName = name = generateTypeName ? "ArrayOf" +
CodeIdentifier
.MakePascal(name) : name;
System\Xml\Serialization\XmlSchemaImporter.cs (16)
238
member.Name =
CodeIdentifier
.MakeValid(Accessor.UnescapeName(accessor.Name));
306
identifier =
CodeIdentifier
.MakeValid(unescapedName);
308
identifier +=
CodeIdentifier
.MakePascal(unescapedName);
442
typeName =
CodeIdentifier
.MakeValid(typeName);
1042
identifier =
CodeIdentifier
.MakeValid(Accessor.UnescapeName(element.Name));
1044
identifier +=
CodeIdentifier
.MakePascal(Accessor.UnescapeName(element.Name));
1214
arrayMapping.TypeName = (type.Name == null || type.Name.Length == 0) ? "ArrayOf" +
CodeIdentifier
.MakePascal(arrayMapping.TypeDesc.Name) : type.Name;
1230
arrayMapping.TypeName = (type.Name == null || type.Name.Length == 0) ? "ArrayOf" +
CodeIdentifier
.MakePascal(itemAccessor.Mapping.TypeDesc.Name) : type.Name;
1252
string refElementIdentifier =
CodeIdentifier
.MakeValid(Accessor.UnescapeName(refElement.Name));
1333
string name =
CodeIdentifier
.MakeValid(Accessor.UnescapeName(accessor.Name));
1374
member.Name =
CodeIdentifier
.MakeValid(Accessor.UnescapeName(accessor.Name));
1454
member.Name =
CodeIdentifier
.MakeValid(xmlnsMemberName == null ? "Namespaces" : xmlnsMemberName);
1497
identifier =
CodeIdentifier
.MakeValid(attribute.Name);
1499
identifier +=
CodeIdentifier
.MakePascal(attribute.Name);
1627
string constantName =
CodeIdentifier
.MakeValid(enumeration.Value);
1669
string constantName =
CodeIdentifier
.MakeValid(element.Name);
System\Xml\Serialization\XmlSerializationGeneratedCode.cs (6)
203
writer.Write(
CodeIdentifier
.GetCSharpName(type));
212
baseSerializer =
CodeIdentifier
.MakeValid(baseSerializer);
217
writer.Write(
CodeIdentifier
.GetCSharpName(baseSerializer));
250
string serializerName =
CodeIdentifier
.MakeValid(Accessor.UnescapeName(mapping.Accessor.Mapping.TypeDesc.Name));
255
writer.Write(
CodeIdentifier
.GetCSharpName(serializerName));
355
writer.Write(
CodeIdentifier
.GetCSharpName(type));
System\Xml\Serialization\XmlSerializationILGen.cs (4)
248
baseSerializer =
CodeIdentifier
.MakeValid(baseSerializer);
253
CodeIdentifier
.GetCSharpName(baseSerializer),
296
string serializerName =
CodeIdentifier
.MakeValid(Accessor.UnescapeName(mapping.Accessor.Mapping.TypeDesc.Name));
301
CodeIdentifier
.GetCSharpName(serializerName),
System\Xml\Serialization\XmlSerializationReader.cs (11)
2326
CodeIdentifier
.CheckValidIdentifier(mapping.ChoiceIdentifier.MemberName);
2644
return "Read" + (++NextMethodNumber).ToString(CultureInfo.InvariantCulture) + "_" +
CodeIdentifier
.MakeValidInternal(name);
2648
return "id" + (++nextIdNumber).ToString(CultureInfo.InvariantCulture) + "_" +
CodeIdentifier
.MakeValidInternal(name);
2713
CodeIdentifier
.CheckValidIdentifier(typeName);
2715
if (propName == null) return
CodeIdentifier
.GetCSharpName(typeName);
2717
propName =
CodeIdentifier
.GetCSharpName(propName);
2755
CodeIdentifier
.CheckValidIdentifier(constants[i].Name);
2841
CodeIdentifier
.CheckValidIdentifier(c.Name);
3098
CodeIdentifier
.CheckValidIdentifier(mapping.Name);
3224
CodeIdentifier
.CheckValidIdentifier(mapping.Name);
4469
CodeIdentifier
.CheckValidIdentifier(choice.MemberIds[elementIndex]);
System\Xml\Serialization\XmlSerializationReaderILGen.cs (9)
396
CodeIdentifier
.CheckValidIdentifier(mapping.ChoiceIdentifier.MemberName);
691
return "Read" + (++NextMethodNumber).ToString(CultureInfo.InvariantCulture) + "_" +
CodeIdentifier
.MakeValidInternal(name);
695
return "id" + (++nextIdNumber).ToString(CultureInfo.InvariantCulture) + "_" +
CodeIdentifier
.MakeValidInternal(name);
968
CodeIdentifier
.CheckValidIdentifier(typeName);
970
if (propName == null) return
CodeIdentifier
.GetCSharpName(typeName);
972
propName =
CodeIdentifier
.GetCSharpName(propName);
1107
CodeIdentifier
.CheckValidIdentifier(c.Name);
1572
CodeIdentifier
.CheckValidIdentifier(mapping.Name);
3291
CodeIdentifier
.CheckValidIdentifier(choice.MemberIds[elementIndex]);
System\Xml\Serialization\XmlSerializationWriter.cs (13)
1829
return "Write" + (++NextMethodNumber).ToString(null, NumberFormatInfo.InvariantInfo) + "_" +
CodeIdentifier
.MakeValidInternal(name);
1897
CodeIdentifier
.CheckValidIdentifier(c.Name);
2094
CodeIdentifier
.CheckValidIdentifier(member.Name);
2123
CodeIdentifier
.CheckValidIdentifier(m.Name);
2157
CodeIdentifier
.CheckValidIdentifier(m.Name);
2179
CodeIdentifier
.CheckValidIdentifier(m.ChoiceIdentifier.MemberName);
3228
CodeIdentifier
.CheckValidIdentifier(enumValue);
3457
string typeFullName =
CodeIdentifier
.GetCSharpName(type);
3551
writer.Write(GetStringForTypeof(
CodeIdentifier
.GetCSharpName(type), collectionUseReflection));
3556
writer.Write(GetStringForTypeof(
CodeIdentifier
.GetCSharpName(defaultIndexer.PropertyType), elementUseReflection));
3567
CodeIdentifier
.MakeValidInternal(fullName.Replace('.','_'));
3607
CodeIdentifier
.CheckValidIdentifier(memberName);
3797
CodeIdentifier
.CheckValidIdentifier(c.Name);
System\Xml\Serialization\XmlSerializationWriterILGen.cs (6)
551
return "Write" + (++NextMethodNumber).ToString(null, NumberFormatInfo.InvariantInfo) + "_" +
CodeIdentifier
.MakeValidInternal(name);
994
CodeIdentifier
.CheckValidIdentifier(member.Name);
1040
CodeIdentifier
.CheckValidIdentifier(m.Name);
1066
CodeIdentifier
.CheckValidIdentifier(m.Name);
1082
CodeIdentifier
.CheckValidIdentifier(m.ChoiceIdentifier.MemberName);
2206
CodeIdentifier
.CheckValidIdentifier(enumValue);