Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
System.Xml.Serialization.XmlReflectionImporter Class Reference

Public Member Functions

 XmlReflectionImporter ()
 
 XmlReflectionImporter (string? defaultNamespace)
 
 XmlReflectionImporter (XmlAttributeOverrides? attributeOverrides)
 
 XmlReflectionImporter (XmlAttributeOverrides? attributeOverrides, string? defaultNamespace)
 
void IncludeTypes (ICustomAttributeProvider provider)
 
void IncludeType (Type type)
 
XmlTypeMapping ImportTypeMapping (Type type)
 
XmlTypeMapping ImportTypeMapping (Type type, string? defaultNamespace)
 
XmlTypeMapping ImportTypeMapping (Type type, XmlRootAttribute? root)
 
XmlTypeMapping ImportTypeMapping (Type type, XmlRootAttribute? root, string? defaultNamespace)
 
XmlMembersMapping ImportMembersMapping (string? elementName, string? ns, XmlReflectionMember[] members, bool hasWrapperElement)
 
XmlMembersMapping ImportMembersMapping (string? elementName, string? ns, XmlReflectionMember[] members, bool hasWrapperElement, bool rpc)
 
XmlMembersMapping ImportMembersMapping (string? elementName, string? ns, XmlReflectionMember[] members, bool hasWrapperElement, bool rpc, bool openModel)
 
XmlMembersMapping ImportMembersMapping (string? elementName, string? ns, XmlReflectionMember[] members, bool hasWrapperElement, bool rpc, bool openModel, XmlMappingAccess access)
 

Package Functions

void SetBase (SerializableMapping mapping, XmlQualifiedName baseQname)
 
string XsdTypeName (Type type)
 
string XsdTypeName (Type type, XmlAttributes a, string name)
 

Static Package Functions

static MethodInfo GetMethodFromSchemaProvider (XmlSchemaProviderAttribute provider, [DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicMethods)] Type type)
 
static XmlReflectionMember FindSpecifiedMember (string memberName, XmlReflectionMember[] reflectionMembers)
 
static XmlTypeMapping GetTopLevelMapping (Type type, string defaultNamespace)
 

Private Types

enum  ImportContext { Text , Attribute , Element }
 

Private Member Functions

void IncludeTypes (ICustomAttributeProvider provider, RecursionLimiter limiter)
 
void IncludeType (Type type, RecursionLimiter limiter)
 
XmlAttributes GetAttributes (Type type, bool canBeSimpleType)
 
XmlAttributes GetAttributes (MemberInfo memberInfo)
 
ElementAccessor ImportElement (TypeModel model, XmlRootAttribute root, string defaultNamespace, RecursionLimiter limiter)
 
ElementAccessor ReconcileLocalAccessor (ElementAccessor accessor, string ns)
 
Accessor ReconcileAccessor (Accessor accessor, NameTable accessors)
 
Exception CreateReflectionException (string context, Exception e)
 
Exception CreateTypeReflectionException (string context, Exception e)
 
Exception CreateMemberReflectionException (FieldModel model, Exception e)
 
TypeMapping ImportTypeMapping (TypeModel model, string ns, ImportContext context, string dataType, XmlAttributes a, RecursionLimiter limiter)
 
TypeMapping ImportTypeMapping (TypeModel model, string ns, ImportContext context, string dataType, XmlAttributes a, bool repeats, bool openModel, RecursionLimiter limiter)
 
SpecialMapping ImportSpecialMapping (Type type, TypeDesc typeDesc, string ns, ImportContext context, RecursionLimiter limiter)
 
StructMapping CreateRootMapping ()
 
NullableMapping CreateNullableMapping (TypeMapping baseMapping, [DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.All)] Type type)
 
StructMapping GetRootMapping ()
 
TypeMapping GetTypeMapping (string typeName, string ns, TypeDesc typeDesc, NameTable typeLib, Type type)
 
StructMapping ImportStructLikeMapping (StructModel model, string ns, bool openModel, XmlAttributes a, RecursionLimiter limiter)
 
bool InitializeStructMembers (StructMapping mapping, StructModel model, bool openModel, string typeName, RecursionLimiter limiter)
 
void SetArrayMappingType (ArrayMapping mapping, string defaultNs, Type type)
 
ArrayMapping ImportArrayLikeMapping (ArrayModel model, string ns, RecursionLimiter limiter)
 
void CheckContext (TypeDesc typeDesc, ImportContext context)
 
PrimitiveMapping ImportPrimitiveMapping (PrimitiveModel model, ImportContext context, string dataType, bool repeats)
 
EnumMapping ImportEnumMapping (EnumModel model, string ns, bool repeats)
 
ConstantMapping ImportConstantMapping (ConstantModel model)
 
MembersMapping ImportMembersMapping (XmlReflectionMember[] xmlReflectionMembers, string ns, bool hasWrapperElement, bool rpc, bool openModel, RecursionLimiter limiter)
 
MemberMapping ImportMemberMapping (XmlReflectionMember xmlReflectionMember, string ns, XmlReflectionMember[] xmlReflectionMembers, bool rpc, bool openModel, RecursionLimiter limiter)
 
MemberMapping ImportFieldMapping (StructModel parent, FieldModel model, XmlAttributes a, string ns, RecursionLimiter limiter)
 
Type CheckChoiceIdentifierType (Type type, bool isArrayLike, string identifierName, string memberName)
 
Type GetChoiceIdentifierType (XmlChoiceIdentifierAttribute choice, XmlReflectionMember[] xmlReflectionMembers, bool isArrayLike, string accessorName)
 
Type GetChoiceIdentifierType (XmlChoiceIdentifierAttribute choice, StructModel structModel, bool isArrayLike, string accessorName)
 
void CreateArrayElementsFromAttributes (ArrayMapping arrayMapping, XmlArrayItemAttributes attributes, Type arrayElementType, string arrayElementNs, RecursionLimiter limiter)
 
void ImportAccessorMapping (MemberMapping accessor, FieldModel model, XmlAttributes a, string ns, Type choiceIdentifierType, bool rpc, bool openModel, RecursionLimiter limiter)
 
void CheckTopLevelAttributes (XmlAttributes a, string accessorName)
 
void CheckAmbiguousChoice (XmlAttributes a, Type accessorType, string accessorName)
 
void CheckChoiceIdentifierMapping (EnumMapping choiceMapping)
 
object GetDefaultValue (TypeDesc fieldTypeDesc, Type t, XmlAttributes a)
 

Static Private Member Functions

static string GetMappingName (Mapping mapping)
 
static string GetContextName (ImportContext context)
 
static Exception InvalidAttributeUseException (Type type)
 
static Exception UnsupportedException (TypeDesc typeDesc, ImportContext context)
 
static bool IsAnonymousType (XmlAttributes a, string contextNs)
 
static int CountAtLevel (XmlArrayItemAttributes attributes, int level)
 
static XmlArrayItemAttribute CreateArrayItemAttribute (TypeDesc typeDesc, int nestingLevel)
 
static XmlArrayAttribute CreateArrayAttribute (TypeDesc typeDesc)
 
static XmlElementAttribute CreateElementAttribute (TypeDesc typeDesc)
 
static void AddUniqueAccessor (INameScope scope, Accessor accessor)
 
static void AddUniqueAccessor (MemberMapping member, INameScope elements, INameScope attributes, bool isSequence)
 
static void CheckForm (XmlSchemaForm form, bool isQualified)
 
static void CheckNullable (bool isNullable, TypeDesc typeDesc, TypeMapping mapping)
 
static ElementAccessor CreateElementAccessor (TypeMapping mapping, string ns)
 

Private Attributes

readonly TypeScope _typeScope
 
readonly XmlAttributeOverrides _attributeOverrides
 
readonly XmlAttributes _defaultAttributes = new XmlAttributes()
 
readonly NameTable _types = new NameTable()
 
readonly NameTable _nullables = new NameTable()
 
readonly NameTable _elements = new NameTable()
 
NameTable _xsdAttributes
 
Hashtable _specials
 
readonly Hashtable _anonymous = new Hashtable()
 
NameTable _serializables
 
StructMapping _root
 
readonly string _defaultNs
 
readonly ModelScope _modelScope
 
int _arrayNestingLevel
 
XmlArrayItemAttributes _savedArrayItemAttributes
 
string _savedArrayNamespace
 
int _choiceNum = 1
 

Detailed Description

Definition at line 10 of file XmlReflectionImporter.cs.


The documentation for this class was generated from the following file: