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