43 references to SerializationNamespace
System.Private.DataContractSerialization (43)
System\Runtime\Serialization\DataContract.cs (5)
1568
return (ns == Globals.SchemaNamespace || ns == Globals.
SerializationNamespace
);
1659
Span<char> formatted = stackalloc char[Globals.
SerializationNamespace
.Length];
1661
charsWritten == Globals.
SerializationNamespace
.Length &&
1662
formatted.SequenceEqual(Globals.
SerializationNamespace
))
1664
ThrowInvalidDataContractException(SR.Format(SR.DataContractNamespaceReserved, Globals.
SerializationNamespace
), type);
System\Runtime\Serialization\DictionaryGlobals.cs (1)
15
public static readonly XmlDictionaryString SerializationNamespace = s_dictionary.Add(Globals.
SerializationNamespace
);
System\Runtime\Serialization\ExtensionDataObject.cs (4)
160
element.AddAttribute(Globals.SerPrefix, Globals.
SerializationNamespace
, Globals.ClrTypeLocalName, ClrTypeName);
162
element.AddAttribute(Globals.SerPrefix, Globals.
SerializationNamespace
, Globals.ClrAssemblyLocalName, ClrAssemblyName);
294
element.AddAttribute(Globals.SerPrefix, Globals.
SerializationNamespace
, Globals.ArraySizeLocalName, Size.ToString(NumberFormatInfo.InvariantInfo));
339
AddQualifiedNameAttribute(element, Globals.SerPrefix, Globals.ISerializableFactoryTypeLocalName, Globals.
SerializationNamespace
, FactoryTypeName, FactoryTypeNamespace);
System\Runtime\Serialization\ExtensionDataReader.cs (2)
60
AddPrefix(Globals.SerPrefix, Globals.
SerializationNamespace
);
522
_nextElement.AddAttribute(Globals.SerPrefix, Globals.
SerializationNamespace
, Globals.RefLocalName, node.Id.ToString(NumberFormatInfo.InvariantInfo));
System\Runtime\Serialization\Globals.cs (2)
28
s_idQualifiedName ??= new XmlQualifiedName(Globals.IdLocalName, Globals.
SerializationNamespace
);
32
s_refQualifiedName ??= new XmlQualifiedName(Globals.RefLocalName, Globals.
SerializationNamespace
);
System\Runtime\Serialization\SchemaExporter.cs (18)
66
if (!Schemas.Contains(Globals.
SerializationNamespace
))
71
throw new InvalidOperationException(SR.Format(SR.CouldNotReadSerializationSchema, Globals.
SerializationNamespace
));
126
genericInfoElement = ExportGenericInfo(classDataContract.UnderlyingType, Globals.GenericTypeLocalName, Globals.
SerializationNamespace
);
178
SchemaHelper.AddSchemaImport(Globals.
SerializationNamespace
, schema);
179
schema.Namespaces.Add(Globals.SerPrefixForSchema, Globals.
SerializationNamespace
);
194
if (element.SchemaTypeName.Namespace.Equals(Globals.
SerializationNamespace
))
195
schema.Namespaces.Add(Globals.SerPrefixForSchema, Globals.
SerializationNamespace
);
314
XmlElement argumentElement = ExportGenericInfo(genericArguments[argIndex], Globals.GenericParameterLocalName, Globals.
SerializationNamespace
);
368
genericInfoElement = ExportGenericInfo(collectionDataContract.UnderlyingType, Globals.GenericTypeLocalName, Globals.
SerializationNamespace
);
471
genericInfoElement = ExportGenericInfo(dataContract.UnderlyingType, Globals.GenericTypeLocalName, Globals.
SerializationNamespace
);
480
schema.Namespaces.Add(Globals.SerPrefixForSchema, Globals.
SerializationNamespace
);
884
internal static XmlQualifiedName EnumerationValueAnnotationName => s_enumerationValueAnnotationName ??= new XmlQualifiedName(Globals.EnumerationValueLocalName, Globals.
SerializationNamespace
);
887
internal static XmlQualifiedName SurrogateDataAnnotationName => s_surrogateDataAnnotationName ??= new XmlQualifiedName(Globals.SurrogateDataLocalName, Globals.
SerializationNamespace
);
890
internal static XmlQualifiedName DefaultValueAnnotation => s_defaultValueAnnotation ??= new XmlQualifiedName(Globals.DefaultValueLocalName, Globals.
SerializationNamespace
);
893
internal static XmlQualifiedName ActualTypeAnnotationName => s_actualTypeAnnotationName ??= new XmlQualifiedName(Globals.ActualTypeLocalName, Globals.
SerializationNamespace
);
896
internal static XmlQualifiedName IsDictionaryAnnotationName => s_isDictionaryAnnotationName ??= new XmlQualifiedName(Globals.IsDictionaryLocalName, Globals.
SerializationNamespace
);
899
internal static XmlQualifiedName IsValueTypeName => s_isValueTypeName ??= new XmlQualifiedName(Globals.IsValueTypeLocalName, Globals.
SerializationNamespace
);
908
iSerializableFactoryTypeAttribute.RefName = new XmlQualifiedName(Globals.ISerializableFactoryTypeLocalName, Globals.
SerializationNamespace
);
System\Runtime\Serialization\SchemaImporter.cs (9)
50
if (!_schemaSet.Contains(Globals.
SerializationNamespace
))
55
throw new InvalidOperationException(SR.Format(SR.CouldNotReadSerializationSchema, Globals.
SerializationNamespace
));
78
if (schema.TargetNamespace != Globals.
SerializationNamespace
250
if (schema.TargetNamespace != Globals.
SerializationNamespace
)
597
element.RefName.Namespace == Globals.
SerializationNamespace
&&
1273
if (typeElement != null && typeElement.NamespaceURI == Globals.
SerializationNamespace
)
1301
argumentElement.NamespaceURI != Globals.
SerializationNamespace
)
1385
if (attribute.RefName.IsEmpty || attribute.RefName.Namespace != Globals.
SerializationNamespace
|| attribute.Use == XmlSchemaUse.Required)
1386
ThrowTypeCannotBeImportedException(typeName.Name, typeName.Namespace, SR.Format(SR.TypeShouldNotContainAttributes, Globals.
SerializationNamespace
));
System\Runtime\Serialization\XmlObjectSerializerReadContext.cs (1)
915
if (ns != Globals.
SerializationNamespace
&& ns != Globals.SchemaInstanceNamespace)
System\Runtime\Serialization\XmlSerializableServices.cs (1)
49
return xmlReader.NamespaceURI != Globals.
SerializationNamespace
&&