27 references to Namespace
System.Runtime.Serialization (27)
System\Runtime\Serialization\ClassDataContract.cs (1)
348
if (ns.Length > 0 && ns != dataContract.
Namespace
.Value)
System\Runtime\Serialization\CollectionDataContract.cs (2)
1435
XmlFormatGetOnlyCollectionReaderDelegate(xmlReader, context, CollectionItemName,
Namespace
, this);
1439
o = XmlFormatReaderDelegate(xmlReader, context, CollectionItemName,
Namespace
, this);
System\Runtime\Serialization\Json\JsonClassDataContract.cs (2)
135
this.typeName = string.IsNullOrEmpty(traditionalDataContract.
Namespace
.Value) ? traditionalDataContract.Name.Value : string.Concat(traditionalDataContract.Name.Value, JsonGlobals.NameValueSeparatorString, XmlObjectSerializerWriteContextComplexJson.TruncateDefaultDataContractNamespace(traditionalDataContract.
Namespace
.Value));
System\Runtime\Serialization\Json\JsonDataContract.cs (2)
167
this.typeName = string.IsNullOrEmpty(traditionalDataContract.
Namespace
.Value) ? traditionalDataContract.Name.Value : string.Concat(traditionalDataContract.Name.Value, JsonGlobals.NameValueSeparatorString, XmlObjectSerializerWriteContextComplexJson.TruncateDefaultDataContractNamespace(traditionalDataContract.
Namespace
.Value));
System\Runtime\Serialization\Json\XmlObjectSerializerWriteContextComplexJson.cs (5)
119
object.ReferenceEquals(contract.
Namespace
, declaredContract.
Namespace
)) ||
121
contract.
Namespace
.Value == declaredContract.
Namespace
.Value)) &&
135
WriteTypeInfo(writer, contract.Name.Value, contract.
Namespace
.Value);
System\Runtime\Serialization\KnownTypeDataContractResolver.cs (1)
42
typeNamespace = contract.
Namespace
;
System\Runtime\Serialization\SchemaImporter.cs (3)
1120
if (keyValueContract.
Namespace
!= dataContract.
Namespace
)
1122
ThrowArrayTypeCannotBeImportedException(typeName.Name, typeName.Namespace, SR.GetString(SR.InvalidKeyValueTypeNamespace, element.Name, keyValueContract.
Namespace
));
System\Runtime\Serialization\XmlFormatWriterGenerator.cs (3)
334
WriteStartElement(memberType, classContract.
Namespace
, namespaceLocal, null /*nameLocal*/, i + childElementIndex);
406
WriteStartElement(itemType, collectionContract.
Namespace
, itemNamespace, itemName, 0 /*nameIndex*/);
519
WriteStartElement(elementType, collectionContract.
Namespace
, itemNamespace, itemName, 0 /*nameIndex*/);
System\Runtime\Serialization\XmlObjectSerializer.cs (6)
212
writer.WriteNamespaceDecl(contract.
Namespace
);
225
string contractNs = XmlDictionaryString.GetString(contract.
Namespace
);
239
return (object.ReferenceEquals(contract.Name, declaredContract.Name) && object.ReferenceEquals(contract.
Namespace
, declaredContract.
Namespace
))
240
|| (contract.Name.Value == declaredContract.Name.Value && contract.
Namespace
.Value == declaredContract.
Namespace
.Value);
System\Runtime\Serialization\XmlObjectSerializerWriteContext.cs (1)
770
WriteTypeInfo(writer, contract.Name, contract.
Namespace
);
System\Runtime\Serialization\XPathQueryGenerator.cs (1)
68
string prefix = context.SetNamespace(contract.
Namespace
.Value);