63 references to Name
System.Xml (63)
System\Xml\Serialization\CodeExporter.cs (1)
214
CodeTypeDeclaration codeClass = new CodeTypeDeclaration(mapping.TypeDesc.
Name
);
System\Xml\Serialization\Mappings.cs (1)
292
get { return IsAnonymousType ? XmlConvert.EncodeLocalName(typeDesc.
Name
) : typeName; }
System\Xml\Serialization\SoapCodeExporter.cs (3)
114
AddTypeMetadata(codeClass.CustomAttributes, typeof(SoapTypeAttribute), mapping.TypeDesc.
Name
, Accessor.UnescapeName(mapping.TypeName), mapping.Namespace, mapping.IncludeInSchema);
128
string className = mapping.TypeDesc.
Name
;
129
string baseName = mapping.TypeDesc.BaseTypeDesc == null ? string.Empty : mapping.TypeDesc.BaseTypeDesc.
Name
;
System\Xml\Serialization\SoapReflectionImporter.cs (6)
221
string xsdTypeName = string.IsNullOrEmpty(dataType) ? model.TypeDesc.BaseTypeDesc.
Name
: dataType;
276
throw new InvalidOperationException(Res.GetString(Res.XmlTypesDuplicate, typeDesc.FullName, existingMapping.TypeDesc.FullName, typeDesc.
Name
, existingMapping.Namespace));
280
throw new InvalidOperationException(Res.GetString(Res.XmlTypesDuplicate, typeDesc.FullName, existingMapping.TypeDesc.FullName, typeDesc.
Name
, existingMapping.Namespace));
302
string typeName = XsdTypeName(model.Type, a, model.TypeDesc.
Name
);
526
string typeName = XsdTypeName(model.Type, a, model.TypeDesc.
Name
);
706
return XsdTypeName(type, GetAttributes(type), typeDesc.
Name
);
System\Xml\Serialization\SoapSchemaExporter.cs (1)
280
if (!mapping.IncludeInSchema) throw new InvalidOperationException(Res.GetString(Res.XmlSoapCannotIncludeInSchema, mapping.TypeDesc.
Name
));
System\Xml\Serialization\XmlCodeExporter.cs (3)
150
AddTypeMetadata(codeClass.CustomAttributes, typeof(XmlTypeAttribute), mapping.TypeDesc.
Name
, Accessor.UnescapeName(mapping.TypeName), mapping.Namespace, mapping.IncludeInSchema);
175
if (typeMapping.TypeDesc.
Name
!= name) {
494
string className = mapping.TypeDesc.
Name
;
System\Xml\Serialization\XmlReflectionImporter.cs (6)
391
string xsdTypeName = valueTypeDesc.DataType == null ? valueTypeDesc.
Name
: valueTypeDesc.DataType.Name;
593
throw new InvalidOperationException(Res.GetString(Res.XmlTypesDuplicate, typeDesc.FullName, existingMapping.TypeDesc.FullName, typeDesc.
Name
, existingMapping.Namespace));
597
throw new InvalidOperationException(Res.GetString(Res.XmlTypesDuplicate, typeDesc.FullName, existingMapping.TypeDesc.FullName, typeDesc.
Name
, existingMapping.Namespace));
651
string typeName = IsAnonymousType(a, ns) ? null : XsdTypeName(model.Type, a, model.TypeDesc.
Name
);
840
return XsdTypeName(type, GetAttributes(type, false), typeDesc.
Name
);
1041
string typeName = IsAnonymousType(a, ns) ? null : XsdTypeName(model.Type, a, model.TypeDesc.
Name
);
System\Xml\Serialization\XmlSchemaExporter.cs (9)
835
throw new InvalidOperationException(Res.GetString(Res.XmlInvalidDefaultValue, value.ToString(), pm.TypeDesc.
Name
));
838
throw new InvalidOperationException(Res.GetString(Res.XmlInvalidDefaultValue, value.ToString(), pm.TypeDesc.
Name
));
864
throw new InvalidOperationException(Res.GetString(Res.XmlCircularReference2, mapping.TypeDesc.
Name
, "AnonymousType", "false"));
869
if (!mapping.IncludeInSchema) throw new InvalidOperationException(Res.GetString(Res.XmlCannotIncludeInSchema, mapping.TypeDesc.
Name
));
881
throw new InvalidOperationException(Res.GetString(Res.XmlAnonymousBaseType, mapping.TypeDesc.
Name
, mapping.BaseMapping.TypeDesc.
Name
, "AnonymousType", "false"));
967
throw new InvalidOperationException(Res.GetString(Res.XmlAnonymousBaseType, textMapping.TypeDesc.
Name
, pm.TypeDesc.
Name
, "AnonymousType", "false"));
1007
if (!mapping.IncludeInSchema) throw new InvalidOperationException(Res.GetString(Res.XmlCannotIncludeInSchema, mapping.TypeDesc.
Name
));
System\Xml\Serialization\XmlSchemaImporter.cs (7)
1109
textMapping.TypeName = textMapping.TypeDesc.
Name
;
1127
mapping.TypeName = mapping.TypeDesc.
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;
1314
mapping.TypeName = mapping.TypeDesc.
Name
;
1392
mapping.TypeName = mapping.TypeDesc.
Name
;
1444
xmlnsMapping.TypeName = xmlnsMapping.TypeDesc.
Name
;
System\Xml\Serialization\XmlSerializationGeneratedCode.cs (1)
250
string serializerName = CodeIdentifier.MakeValid(Accessor.UnescapeName(mapping.Accessor.Mapping.TypeDesc.
Name
));
System\Xml\Serialization\XmlSerializationILGen.cs (1)
296
string serializerName = CodeIdentifier.MakeValid(Accessor.UnescapeName(mapping.Accessor.Mapping.TypeDesc.
Name
));
System\Xml\Serialization\XmlSerializationReader.cs (4)
2129
MethodNames.Add(mapping, NextMethodName(mapping.TypeDesc.
Name
));
2654
if (enumMethodName == null) throw new InvalidOperationException(Res.GetString(Res.XmlMissingMethodEnum, mapping.TypeDesc.
Name
));
2788
tableName = WriteHashtable(mapping, mapping.TypeDesc.
Name
);
3324
string createName = "create" + (++nextCreateMethodNumber).ToString(CultureInfo.InvariantCulture) + "_" + typeDesc.
Name
;
System\Xml\Serialization\XmlSerializationReaderILGen.cs (3)
196
MethodNames.Add(mapping, NextMethodName(mapping.TypeDesc.
Name
));
703
if (enumMethodName == null) throw new InvalidOperationException(Res.GetString(Res.XmlMissingMethodEnum, mapping.TypeDesc.
Name
));
1047
WriteHashtable(mapping, mapping.TypeDesc.
Name
, out get_TableName);
System\Xml\Serialization\XmlSerializationWriter.cs (1)
1321
MethodNames.Add(mapping, NextMethodName(mapping.TypeDesc.
Name
));
System\Xml\Serialization\XmlSerializationWriterILGen.cs (15)
37
MethodNames.Add(mapping, NextMethodName(mapping.TypeDesc.
Name
));
1113
string aVar = "a" + memberTypeDesc.
Name
;
1114
string aiVar = "ai" + memberTypeDesc.
Name
;
1370
WriteElements(source, choiceSource, elements, text, choice, "a" + memberTypeDesc.
Name
, writeAccessors, memberTypeDesc.IsNullable);
1377
string aName = "a" + arrayTypeDesc.
Name
;
1390
cName = "c" + choice.Mapping.TypeDesc.
Name
;
1476
string arrayNamePlusA = (arrayName).Replace(arrayTypeDesc.
Name
, "") + "a" + arrayElementTypeDesc.
Name
;
1477
string arrayNamePlusI = (arrayName).Replace(arrayTypeDesc.
Name
, "") + "i" + arrayElementTypeDesc.
Name
;
1498
string iPlusArrayName = "i" + (arrayName).Replace(arrayTypeDesc.
Name
, "");
1499
string arrayNamePlusA = (arrayName).Replace(arrayTypeDesc.
Name
, "") + "a" + arrayElementTypeDesc.
Name
;
1500
string arrayNamePlusI = (arrayName).Replace(arrayTypeDesc.
Name
, "") + "i" + arrayElementTypeDesc.
Name
;
System\Xml\Serialization\XmlTypeMapping.cs (1)
31
get { return Mapping.TypeDesc.
Name
; }