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

Protected Attributes

TypeBuilder typeBuilder
 
CodeGenerator ilg
 

Package Functions

 XmlSerializationILGen (TypeScope[] scopes, string access, string className)
 
MethodBuilder EnsureMethodBuilder (TypeBuilder typeBuilder, string methodName, MethodAttributes attributes, Type returnType, Type[] parameterTypes)
 
MethodBuilderInfo GetMethodBuilder (string methodName)
 
virtual void GenerateMethod (TypeMapping mapping)
 
void GenerateReferencedMethods ()
 
string ReferenceMapping (TypeMapping mapping)
 
string GetCSharpString (string value)
 
FieldBuilder GenerateHashtableGetBegin (string privateName, string publicName, TypeBuilder serializerContractTypeBuilder)
 
void GenerateHashtableGetEnd (FieldBuilder fieldBuilder)
 
FieldBuilder GeneratePublicMethods (string privateName, string publicName, string[] methods, XmlMapping[] xmlMappings, TypeBuilder serializerContractTypeBuilder)
 
void GenerateSupportedTypes (Type[] types, TypeBuilder serializerContractTypeBuilder)
 
string GenerateBaseSerializer (string baseSerializer, string readerClass, string writerClass, CodeIdentifiers classes)
 
string GenerateTypedSerializer (string readMethod, string writeMethod, XmlMapping mapping, CodeIdentifiers classes, string baseSerializer, string readerClass, string writerClass)
 
void GenerateSerializerContract (string className, XmlMapping[] xmlMappings, Type[] types, string readerType, string[] readMethods, string writerType, string[] writerMethods, Dictionary< string, string > serializers)
 
void ILGenLoad (string source)
 
void ILGenLoad (string source, Type type)
 

Static Package Functions

static Regex NewRegex (string pattern)
 
static bool IsWildcard (SpecialMapping mapping)
 

Package Attributes

Dictionary< string, TypeCreatedTypes = new Dictionary<string, Type>()
 
Dictionary< string, MemberInfomemberInfos = new Dictionary<string, MemberInfo>()
 

Properties

int NextMethodNumber [get, set]
 
ReflectionAwareILGen RaCodeGen [get]
 
TypeDesc StringTypeDesc [get]
 
TypeDesc QnameTypeDesc [get]
 
string ClassName [get]
 
TypeScope[] Scopes [get]
 
Dictionary< TypeMapping, stringMethodNames [get]
 
HashSet< TypeMappingGeneratedMethods [get]
 
ModuleBuilder ModuleBuilder [get, set]
 
TypeAttributes TypeAttributes [get]
 

Private Member Functions

TypeMapping[] EnsureArrayIndex (TypeMapping[] a, int index)
 
FieldBuilder GenerateTypedSerializers (Dictionary< string, string > serializers, TypeBuilder serializerContractTypeBuilder)
 
void GenerateGetSerializer (Dictionary< string, string > serializers, XmlMapping[] xmlMappings, TypeBuilder serializerContractTypeBuilder)
 

Private Attributes

int _nextMethodNumber
 
readonly Dictionary< TypeMapping, string_methodNames = new Dictionary<TypeMapping, string>()
 
readonly Dictionary< string, MethodBuilderInfo_methodBuilders = new Dictionary<string, MethodBuilderInfo>()
 
readonly ReflectionAwareILGen _raCodeGen
 
readonly TypeScope[] _scopes
 
readonly TypeDesc _stringTypeDesc
 
readonly TypeDesc _qnameTypeDesc
 
readonly string _className
 
TypeMapping[] _referencedMethods
 
int _references
 
readonly HashSet< TypeMapping_generatedMethods = new HashSet<TypeMapping>()
 
ModuleBuilder _moduleBuilder
 
readonly TypeAttributes _typeAttributes
 

Static Private Attributes

static readonly Dictionary< string, Regexs_regexs = new Dictionary<string, Regex>()
 

Detailed Description

Definition at line 10 of file XmlSerializationILGen.cs.


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