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