44 references to SerializationNamespace
System.Runtime.Serialization (44)
System\Runtime\Serialization\DataContract.cs (3)
1746
return (ns == Globals.SchemaNamespace || ns == Globals.
SerializationNamespace
);
1780
if (uri.ToString() == Globals.
SerializationNamespace
)
1781
ThrowInvalidDataContractException(SR.GetString(SR.DataContractNamespaceReserved, Globals.
SerializationNamespace
), type);
System\Runtime\Serialization\DictionaryGlobals.cs (1)
90
SerializationNamespace = dictionary.Add(Globals.
SerializationNamespace
);
System\Runtime\Serialization\ExtensionDataObject.cs (4)
187
element.AddAttribute(Globals.SerPrefix, Globals.
SerializationNamespace
, Globals.ClrTypeLocalName, ClrTypeName);
189
element.AddAttribute(Globals.SerPrefix, Globals.
SerializationNamespace
, Globals.ClrAssemblyLocalName, ClrAssemblyName);
283
element.AddAttribute(Globals.SerPrefix, Globals.
SerializationNamespace
, Globals.ArraySizeLocalName, Size.ToString(NumberFormatInfo.InvariantInfo));
366
AddQualifiedNameAttribute(element, Globals.SerPrefix, Globals.ISerializableFactoryTypeLocalName, Globals.
SerializationNamespace
, FactoryTypeName, FactoryTypeNamespace);
System\Runtime\Serialization\ExtensionDataReader.cs (2)
69
AddPrefix(Globals.SerPrefix, Globals.
SerializationNamespace
);
536
nextElement.AddAttribute(Globals.SerPrefix, Globals.
SerializationNamespace
, Globals.RefLocalName, node.Id.ToString(NumberFormatInfo.InvariantInfo));
System\Runtime\Serialization\Globals.cs (2)
34
idQualifiedName = new XmlQualifiedName(Globals.IdLocalName, Globals.
SerializationNamespace
);
47
refQualifiedName = new XmlQualifiedName(Globals.RefLocalName, Globals.
SerializationNamespace
);
System\Runtime\Serialization\SchemaExporter.cs (18)
75
if (!Schemas.Contains(Globals.
SerializationNamespace
))
80
throw System.Runtime.Serialization.DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.CouldNotReadSerializationSchema, Globals.
SerializationNamespace
)));
132
genericInfoElement = ExportGenericInfo(classDataContract.UnderlyingType, Globals.GenericTypeLocalName, Globals.
SerializationNamespace
);
184
SchemaHelper.AddSchemaImport(Globals.
SerializationNamespace
, schema);
185
schema.Namespaces.Add(Globals.SerPrefixForSchema, Globals.
SerializationNamespace
);
201
if (element.SchemaTypeName.Namespace.Equals(Globals.
SerializationNamespace
))
202
schema.Namespaces.Add(Globals.SerPrefixForSchema, Globals.
SerializationNamespace
);
319
XmlElement argumentElement = ExportGenericInfo(genericArguments[argIndex], Globals.GenericParameterLocalName, Globals.
SerializationNamespace
);
367
genericInfoElement = ExportGenericInfo(collectionDataContract.UnderlyingType, Globals.GenericTypeLocalName, Globals.
SerializationNamespace
);
466
genericInfoElement = ExportGenericInfo(dataContract.UnderlyingType, Globals.GenericTypeLocalName, Globals.
SerializationNamespace
);
475
schema.Namespaces.Add(Globals.SerPrefixForSchema, Globals.
SerializationNamespace
);
939
enumerationValueAnnotationName = new XmlQualifiedName(Globals.EnumerationValueLocalName, Globals.
SerializationNamespace
);
956
surrogateDataAnnotationName = new XmlQualifiedName(Globals.SurrogateDataLocalName, Globals.
SerializationNamespace
);
973
defaultValueAnnotation = new XmlQualifiedName(Globals.DefaultValueLocalName, Globals.
SerializationNamespace
);
990
actualTypeAnnotationName = new XmlQualifiedName(Globals.ActualTypeLocalName, Globals.
SerializationNamespace
);
1007
isDictionaryAnnotationName = new XmlQualifiedName(Globals.IsDictionaryLocalName, Globals.
SerializationNamespace
);
1024
isValueTypeName = new XmlQualifiedName(Globals.IsValueTypeLocalName, Globals.
SerializationNamespace
);
1036
iSerializableFactoryTypeAttribute.RefName = new XmlQualifiedName(Globals.ISerializableFactoryTypeLocalName, Globals.
SerializationNamespace
);
System\Runtime\Serialization\SchemaImporter.cs (9)
51
if (!schemaSet.Contains(Globals.
SerializationNamespace
))
56
throw System.Runtime.Serialization.DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.CouldNotReadSerializationSchema, Globals.
SerializationNamespace
)));
83
if (schema.TargetNamespace != Globals.
SerializationNamespace
251
if (schema.TargetNamespace != Globals.
SerializationNamespace
)
606
element.RefName.Namespace == Globals.
SerializationNamespace
&&
1286
if (typeElement != null && typeElement.NamespaceURI == Globals.
SerializationNamespace
)
1317
argumentElement.NamespaceURI != Globals.
SerializationNamespace
)
1399
if (attribute.RefName.IsEmpty || attribute.RefName.Namespace != Globals.
SerializationNamespace
|| attribute.Use == XmlSchemaUse.Required)
1400
ThrowTypeCannotBeImportedException(typeName.Name, typeName.Namespace, SR.GetString(SR.TypeShouldNotContainAttributes, Globals.
SerializationNamespace
));
System\Runtime\Serialization\XmlObjectSerializerReadContext.cs (1)
915
if (ns != Globals.
SerializationNamespace
&& ns != Globals.SchemaInstanceNamespace)
System\Runtime\Serialization\XmlObjectSerializerReadContextComplex.cs (3)
182
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(XmlObjectSerializer.CreateSerializationException(XmlObjectSerializer.TryAddLineInfo(xmlReader, SR.GetString(SR.AttributeNotFound, Globals.
SerializationNamespace
, Globals.ClrTypeLocalName, xmlReader.NodeType, xmlReader.NamespaceURI, xmlReader.LocalName))));
184
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(XmlObjectSerializer.CreateSerializationException(XmlObjectSerializer.TryAddLineInfo(xmlReader, SR.GetString(SR.AttributeNotFound, Globals.
SerializationNamespace
, Globals.ClrAssemblyLocalName, xmlReader.NodeType, xmlReader.NamespaceURI, xmlReader.LocalName))));
186
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(XmlObjectSerializer.CreateSerializationException(XmlObjectSerializer.TryAddLineInfo(xmlReader, SR.GetString(SR.AttributeNotFound, Globals.
SerializationNamespace
, Globals.ClrTypeLocalName, xmlReader.NodeType, xmlReader.NamespaceURI, xmlReader.LocalName))));
System\Runtime\Serialization\XmlSerializableServices.cs (1)
53
return xmlReader.NamespaceURI != Globals.
SerializationNamespace
&&