17 writes to Name
dotnet-svcutil-lib (17)
FrameworkFork\Microsoft.Xml\Xml\schema\XmlSchemaType.cs (1)
357set { Name = value; }
FrameworkFork\Microsoft.Xml\Xml\schema\XsdBuilder.cs (2)
1486builder._simpleType.Name = value; 1634builder._complexType.Name = value;
FrameworkFork\Microsoft.Xml\Xml\Serialization\SoapSchemaExporter.cs (4)
236type.Name = mapping.TypeName; 326type.Name = mapping.TypeName; 356type.Name = mapping.TypeName; 413dataType.Name = mapping.TypeName;
FrameworkFork\Microsoft.Xml\Xml\Serialization\Types.cs (2)
656dataType.Name = dataTypeName; 667dataType.Name = dataTypeName;
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlSchemaExporter.cs (6)
67type.Name = xmlMembersMapping.Accessor.Name; 180type.Name = name; 226type.Name = name; 646type.Name = mapping.TypeName; 1023type.Name = mapping.TypeName; 1192dataType.Name = mapping.TypeName;
FrameworkFork\System.Web.Services\Services\Description\ServiceDescriptionSerializer.cs (2)
9278o.@Name = Reader.Value; 11320o.@Name = Reader.Value;
115 references to Name
dotnet-svcutil-lib (115)
FrameworkFork\Microsoft.Xml\Xml\schema\Preprocessor.cs (6)
1532if (simpleType.Name != null) 1539if (simpleType.Name != null) 1542simpleType.SetQualifiedName(new XmlQualifiedName(simpleType.Name, _targetNamespace)); 1673if (complexType.Name != null) 1680if (complexType.Name != null) 1683complexType.SetQualifiedName(new XmlQualifiedName(complexType.Name, _targetNamespace));
FrameworkFork\Microsoft.Xml\Xml\schema\SchemaCollectionCompiler.cs (2)
2468string name = complexType.Name != null ? complexType.Name : string.Empty;
FrameworkFork\Microsoft.Xml\Xml\schema\SchemaCollectionPreprocessor.cs (6)
1177if (simpleType.Name != null) 1184if (simpleType.Name != null) 1187simpleType.SetQualifiedName(new XmlQualifiedName(simpleType.Name, _targetNamespace)); 1316if (complexType.Name != null) 1323if (complexType.Name != null) 1326complexType.SetQualifiedName(new XmlQualifiedName(complexType.Name, _targetNamespace));
FrameworkFork\Microsoft.Xml\Xml\schema\SchemaSetCompiler.cs (2)
2911string name = complexType.Name != null ? complexType.Name : string.Empty;
FrameworkFork\Microsoft.Xml\Xml\schema\XmlSchemaType.cs (1)
356get { return Name; }
FrameworkFork\Microsoft.Xml\Xml\Serialization\SchemaObjectWriter.cs (2)
563WriteAttribute(@"name", @"", ((System.String)o.@Name)); 806WriteAttribute(@"name", @"", ((System.String)o.@Name));
FrameworkFork\Microsoft.Xml\Xml\Serialization\SoapCodeExporter.cs (1)
215attribute.Arguments.Add(new CodeAttributeArgument("DataType", new CodePrimitiveExpression(typeDesc.DataType.Name)));
FrameworkFork\Microsoft.Xml\Xml\Serialization\SoapReflectionImporter.cs (5)
507itemTypeName = itemTypeMapping.TypeDesc.DataType.Name; 579mapping.TypeName = mapping.TypeDesc.DataType.Name; 790if (typeDesc.IsPrimitive && typeDesc.DataType != null && typeDesc.DataType.Name != null && typeDesc.DataType.Name.Length > 0) 791return typeDesc.DataType.Name;
FrameworkFork\Microsoft.Xml\Xml\Serialization\SoapSchemaExporter.cs (5)
106if (type != null && type.Name == newTypeName) 212return new XmlQualifiedName(mapping.TypeDesc.DataType.Name, UrtTypes.Namespace); 217return new XmlQualifiedName(mapping.TypeDesc.DataType.Name, XmlSchema.Namespace); 346return new XmlQualifiedName(type.Name, mapping.Namespace); 365return new XmlQualifiedName(type.Name, mapping.Namespace);
FrameworkFork\Microsoft.Xml\Xml\Serialization\SoapSchemaImporter.cs (19)
273throw new NotSupportedException(string.Format(ResXml.XmlUnsupportedRedefine, type.Name, typeNs)); 297if (type.Name == null) 322string typeName = GenerateUniqueTypeName(Accessor.UnescapeName(type.Name)); 329structMapping.TypeName = type.Name; 339ImportDerivedTypes(new XmlQualifiedName(type.Name, typeNs)); 347throw new InvalidOperationException(string.Format(ResXml.XmlInvalidAnyAttributeUse, type.Name, type.QualifiedName.Namespace)); 356throw new InvalidOperationException(string.Format(ResXml.XmlSoapInvalidAttributeUse, type.Name, type.QualifiedName.Namespace)); 361if (attr.Use != XmlSchemaUse.Prohibited) throw new InvalidOperationException(string.Format(ResXml.XmlSoapInvalidAttributeUse, type.Name, type.QualifiedName.Namespace)); 448if (type.Name == Soap.Array && ns == Soap.Encoding) 507mapping.TypeName = td.DataType.Name; 611mapping.TypeName = mapping.TypeDesc.DataType.Name; 659mapping.TypeName = mapping.TypeDesc.DataType.Name; 673mapping.TypeName = sourceTypeDesc.DataType.Name; 681if (dataType.Name != null && dataType.Name.Length != 0) 683typeDesc = Scope.GetTypeDesc(dataType.Name, ns); 688mapping.TypeName = typeDesc.DataType.Name; 696if (dataType.Name != null && dataType.Name.Length != 0)
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlCodeExporter.cs (3)
202attribute.Arguments.Add(new CodeAttributeArgument("DataType", new CodePrimitiveExpression(typeMapping.TypeDesc.DataType.Name))); 741ExportText(metadata, sameType ? null : mapping.TypeDesc, mapping.TypeDesc.IsAmbiguousDataType ? mapping.TypeDesc.DataType.Name : null); 925attribute.Arguments.Add(new CodeAttributeArgument("DataType", new CodePrimitiveExpression(dataTypeDesc.DataType.Name)));
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlReflectionImporter.cs (6)
439string xsdTypeName = valueTypeDesc.DataType == null ? valueTypeDesc.Name : valueTypeDesc.DataType.Name; 957if (typeDesc.IsPrimitive && typeDesc.DataType != null && typeDesc.DataType.Name != null && typeDesc.DataType.Name.Length > 0) 958return typeDesc.DataType.Name; 1040name = itemTypeMapping.TypeDesc.DataType.Name; 1177mapping.TypeName = mapping.TypeDesc.DataType.Name;
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlSchemaExporter.cs (9)
65if (type != null && type.Name != null && type.Name.Length > 0) 133if (type.Name == name) 287if (type != null && type.Name == newTypeName) 448return new XmlQualifiedName(mapping.TypeDesc.DataType.Name, UrtTypes.Namespace); 611qname = new XmlQualifiedName(type.Name, mapping.Namespace); 617qname = new XmlQualifiedName(mapping.TypeDesc.DataType.Name, XmlSchema.Namespace); 682element.SchemaTypeName = new XmlQualifiedName(type.Name, mapping.Namespace); 1074XmlQualifiedName qname = new XmlQualifiedName(type.Name, mapping.Namespace);
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlSchemaImporter.cs (29)
82mapping.TypeName = mapping.TypeDesc.DataType.Name; 517if (type.DerivedFrom == baseName && TypesInUse[type.Name, schema.TargetNamespace] == null) 558throw new NotSupportedException(string.Format(ResXml.XmlUnsupportedRedefine, type.Name, typeNs)); 575if (mapping != null && type.Name != null && type.Name.Length != 0) 662string typeName = type.Name == null || type.Name.Length == 0 ? GenerateUniqueTypeName(identifier, typeNs) : GenerateUniqueTypeName(identifier); 665structMapping.TypeName = type.Name == null || type.Name.Length == 0 ? null : identifier; 696throw new InvalidOperationException(string.Format(ResXml.XmlIllegalOverride, type.Name, baseMember.Name, baseMember.TypeDesc.FullName, structMapping.Members[i].TypeDesc.FullName, declaringMapping.TypeDesc.FullName)); 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; 1428if (type.Name != null && type.Name.Length != 0) 1693mapping.TypeName = mapping.TypeDesc.DataType.Name; 1808mapping.TypeName = dataType.Name; 1847if (dataType.Name != null && dataType.Name.Length > 0) 1932mapping.TypeName = sourceTypeDesc.DataType.Name; 1941if (dataType.Name != null && dataType.Name.Length != 0) 1943typeDesc = Scope.GetTypeDesc(dataType.Name, ns, flags); 1948mapping.TypeName = typeDesc.DataType.Name; 1996if (dataType.Name != null && dataType.Name.Length != 0)
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlSchemas.cs (4)
562return ((XmlSchemaType)o).Name; 582if (type.Name != null && type.Name.Length != 0) 639item = string.Format(ResXml.XmlSchemaNamedItem, ns, o.GetType() == typeof(XmlSchemaSimpleType) ? "simpleType" : "complexType", ((XmlSchemaType)o).Name, null);
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlSerializer.cs (2)
512return xmlReader.IsStartElement(typeDesc.DataType.Name, string.Empty); 766element.Name = typeDesc.DataType.Name;
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\SchemaImporter.cs (9)
259XmlQualifiedName currentTypeName = new XmlQualifiedName(schemaType.Name, schema.TargetNamespace); 510|| (string.IsNullOrEmpty(type.Name) && _dataContractSet.TryGetReferencedType(ImportActualType(type.Annotation, typeName, typeName), dataContract, out referencedType))) 1295throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidDataContractException(string.Format(SRSerialization.GenericAnnotationAttributeNotFound, type.Name, Globals.GenericNameAttribute))); 1299throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidDataContractException(string.Format(SRSerialization.GenericAnnotationAttributeNotFound, type.Name, Globals.GenericNamespaceAttribute))); 1304GenericInfo genInfo = new GenericInfo(new XmlQualifiedName(name, ns), type.Name); 1312throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidDataContractException(string.Format(SRSerialization.GenericAnnotationHasInvalidElement, argumentElement.LocalName, argumentElement.NamespaceURI, type.Name))); 1318throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidDataContractException(string.Format(SRSerialization.GenericAnnotationHasInvalidAttributeValue, argumentElement.LocalName, argumentElement.NamespaceURI, type.Name, nestedLevelAttribute.Value, nestedLevelAttribute.LocalName, Globals.TypeOfInt.Name))); 1321throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidDataContractException(string.Format(SRSerialization.GenericAnnotationForNestedLevelMustBeIncreasing, argumentElement.LocalName, argumentElement.NamespaceURI, type.Name))); 1332throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidDataContractException(string.Format(SRSerialization.GenericAnnotationHasInvalidAttributeValue, typeElement.LocalName, typeElement.NamespaceURI, type.Name, typeNestedLevelsAttribute.Value, typeNestedLevelsAttribute.LocalName, Globals.TypeOfInt.Name)));
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\SchemaHelper.cs (2)
60XmlSchemaType existingType = (XmlSchemaType)schema.SchemaTypes[new XmlQualifiedName(type.Name, schema.TargetNamespace)]; 66throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRServiceModel.SFxConflictingGlobalType, type.Name, schema.TargetNamespace)));
FrameworkFork\System.Web.Services\Services\Description\ServiceDescriptionSerializer.cs (2)
3146WriteAttribute(@"name", @"", ((global::System.String)o.@Name)); 3952WriteAttribute(@"name", @"", ((global::System.String)o.@Name));