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