7 instantiations of TypeScope
System.Private.Xml (7)
System\Xml\Serialization\ReflectionXmlSerializationReader.cs (2)
24internal static TypeDesc StringTypeDesc { get; set; } = (new TypeScope()).GetTypeDesc(typeof(string)); 25internal static TypeDesc QnameTypeDesc { get; set; } = (new TypeScope()).GetTypeDesc(typeof(XmlQualifiedName));
System\Xml\Serialization\SchemaImporter.cs (1)
67internal TypeScope Scope => _scope ??= new TypeScope();
System\Xml\Serialization\SoapReflectionImporter.cs (1)
43_typeScope = new TypeScope();
System\Xml\Serialization\XmlReflectionImporter.cs (2)
79_typeScope = new TypeScope(); 2263TypeDesc typeDesc = new TypeScope().GetTypeDesc(type);
System\Xml\Serialization\XmlSerializationWriter.cs (1)
821TypeDesc typeDesc = new TypeScope().GetTypeDesc(type);
83 references to TypeScope
System.Private.Xml (83)
System\Xml\Serialization\Compilation.cs (5)
308var scopes = new TypeScope[scopeTable.Keys.Count]; 313foreach (TypeScope scope in scopes) 442var scopeTable = new Dictionary<TypeScope, XmlMapping>(); 445TypeScope[] scopes = new TypeScope[scopeTable.Keys.Count];
System\Xml\Serialization\Compiler.cs (1)
28if (TypeScope.IsKnownType(type))
System\Xml\Serialization\ImportContext.cs (1)
446XmlQualifiedName qname = TypeScope.ParseWsdlArrayType(attribute.Value, out _, item);
System\Xml\Serialization\Models.cs (4)
20private readonly TypeScope _typeScope; 24internal ModelScope(TypeScope typeScope) 29internal TypeScope TypeScope 136get { return ModelScope.GetTypeModel(TypeScope.GetArrayElementType(Type, null)!); }
System\Xml\Serialization\ReflectionXmlSerializationReader.cs (3)
35TypeScope scope = _mapping.Scope!; 1343MemberMapping[] mappings = TypeScope.GetSettableMembers(structMapping); 1576MemberMapping[] mappings = TypeScope.GetSettableMembers(structMapping);
System\Xml\Serialization\ReflectionXmlSerializationWriter.cs (2)
41TypeScope scope = _mapping.Scope!; 550MemberMapping[] members = TypeScope.GetAllMembers(mapping);
System\Xml\Serialization\SchemaImporter.cs (2)
22private TypeScope? _scope; 67internal TypeScope Scope => _scope ??= new TypeScope();
System\Xml\Serialization\SoapReflectionImporter.cs (5)
19private readonly TypeScope _typeScope; 171TypeDesc? td = TypeScope.GetTypeDesc(dataType!, XmlSchema.Namespace); 207TypeDesc valueTypeDesc = string.IsNullOrEmpty(dataType) ? model.TypeDesc.BaseTypeDesc! : TypeScope.GetTypeDesc(dataType, XmlSchema.Namespace)!; 534mapping.TypeDesc = TypeScope.GetTypeDesc(dataType, XmlSchema.Namespace); 538mapping.TypeDesc = TypeScope.GetTypeDesc(dataType, UrtTypes.Namespace);
System\Xml\Serialization\XmlMapping.cs (4)
26private readonly TypeScope? _scope; 34internal XmlMapping(TypeScope? scope, ElementAccessor accessor) : this(scope, accessor, XmlMappingAccess.Read | XmlMappingAccess.Write) 38internal XmlMapping(TypeScope? scope, ElementAccessor accessor, XmlMappingAccess access) 51internal TypeScope? Scope
System\Xml\Serialization\XmlMembersMapping.cs (1)
18internal XmlMembersMapping(TypeScope scope, ElementAccessor accessor, XmlMappingAccess access) : base(scope, accessor, access)
System\Xml\Serialization\XmlReflectionImporter.cs (8)
26private readonly TypeScope _typeScope; 252if (canBeSimpleType && TypeScope.IsKnownType(type)) 404TypeDesc modelTypeDesc = TypeScope.IsOptionalValue(model.Type) ? model.TypeDesc.BaseTypeDesc! : model.TypeDesc; 409TypeDesc? td = TypeScope.GetTypeDesc(dataType, XmlSchema.Namespace); 447TypeDesc valueTypeDesc = string.IsNullOrEmpty(dataType) ? model.TypeDesc.BaseTypeDesc! : TypeScope.GetTypeDesc(dataType, XmlSchema.Namespace)!; 1165mapping.TypeDesc = TypeScope.GetTypeDesc(dataType, XmlSchema.Namespace); 1169mapping.TypeDesc = TypeScope.GetTypeDesc(dataType, UrtTypes.Namespace); 1571Type arrayElementType = TypeScope.GetArrayElementType(accessorType, $"{model.FieldTypeDesc.FullName}.{model.Name}")!;
System\Xml\Serialization\XmlSchemaExporter.cs (3)
25private TypeScope? _scope; 217private void CheckScope(TypeScope? scope) 938private void ExportRootIfNecessary(TypeScope typeScope)
System\Xml\Serialization\XmlSchemaImporter.cs (6)
44mapping.TypeDesc = TypeScope.GetTypeDesc("string", XmlSchema.Namespace, flags); 1737TypeDesc? sourceTypeDesc = TypeScope.GetTypeDesc((XmlSchemaSimpleType)sourceType); 1843typeDesc = TypeScope.GetTypeDesc(dataType.Name, ns, flags); 1898typeDesc = TypeScope.GetTypeDesc(dataType); 1918TypeDesc? typeDesc = TypeScope.GetTypeDesc(name.Name, name.Namespace, flags); 1930return (XmlSchemaSimpleType?)TypeScope.GetTypeDesc("string", XmlSchema.Namespace, flags)!.DataType;
System\Xml\Serialization\XmlSerializationGeneratedCode.cs (3)
26private readonly TypeScope[] _scopes; 36internal XmlSerializationCodeGen(IndentedWriter writer, TypeScope[] scopes, string access, string className) 57internal TypeScope[] Scopes { get { return _scopes; } }
System\Xml\Serialization\XmlSerializationILGen.cs (3)
27private readonly TypeScope[] _scopes; 39internal XmlSerializationILGen(TypeScope[] scopes, string access, string className) 58internal TypeScope[] Scopes { get { return _scopes; } }
System\Xml\Serialization\XmlSerializationReader.cs (8)
1569fallbackElementType = TypeScope.GetArrayElementType(arrayType, null); 2226internal XmlSerializationReaderCodeGen(IndentedWriter writer, TypeScope[] scopes, string access, string className) : base(writer, scopes, access, className) 2240foreach (TypeScope scope in Scopes) 2250foreach (TypeScope scope in Scopes) 2385foreach (TypeScope scope in Scopes) 3090foreach (TypeScope scope in Scopes) 3302MemberMapping[] mappings = TypeScope.GetSettableMembers(structMapping); 3451MemberMapping[] mappings = TypeScope.GetSettableMembers(structMapping);
System\Xml\Serialization\XmlSerializationReaderILGen.cs (4)
180internal XmlSerializationReaderILGen(TypeScope[] scopes, string access, string className) 193foreach (TypeScope scope in Scopes) 1172foreach (TypeScope scope in Scopes) 1526MemberMapping[] mappings = TypeScope.GetSettableMembers(structMapping, memberInfos);
System\Xml\Serialization\XmlSerializationWriter.cs (12)
935XmlQualifiedName qname = TypeScope.ParseWsdlArrayType(attr.Value, out dims, (container is XmlSchemaObject) ? (XmlSchemaObject)container : null); 1188Type elementType = TypeScope.GetArrayElementType(type, null)!; 1197elementType = TypeScope.GetArrayElementType(elementType, null)!; 1608internal void WriteReflectionInit(TypeScope scope) 1619private string WriteTypeInfo(TypeScope scope, TypeDesc typeDesc, Type type) 1838PropertyInfo defaultIndexer = TypeScope.GetDefaultIndexer(type, null); 2243internal XmlSerializationWriterCodeGen(IndentedWriter writer, TypeScope[] scopes, string access, string className) : base(writer, scopes, access, className) 2258foreach (TypeScope scope in Scopes) 2272foreach (TypeScope scope in Scopes) 2334foreach (TypeScope scope in Scopes) 3009foreach (TypeScope scope in Scopes) 3149MemberMapping[] members = TypeScope.GetAllMembers(mapping);
System\Xml\Serialization\XmlSerializationWriterILGen.cs (5)
21internal XmlSerializationWriterILGen(TypeScope[] scopes, string access, string className) 35foreach (TypeScope scope in Scopes) 783foreach (TypeScope scope in Scopes) 1022MemberMapping[] members = TypeScope.GetAllMembers(mapping, memberInfos); 2308internal static void WriteReflectionInit(TypeScope scope)
System\Xml\Serialization\XmlSerializer.cs (2)
548TypeDesc typeDesc = (TypeDesc)TypeScope.PrimtiveTypes[_primitiveType]!; 847TypeDesc? typeDesc = (TypeDesc?)TypeScope.PrimtiveTypes[type];
System\Xml\Serialization\XmlTypeMapping.cs (1)
14internal XmlTypeMapping(TypeScope? scope, ElementAccessor accessor) : base(scope, accessor)