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

Package Functions

 XmlSerializationCodeGen (IndentedWriter writer, TypeScope[] scopes, string access, string className)
 
virtual void GenerateMethod (TypeMapping mapping)
 
void GenerateReferencedMethods ()
 
string ReferenceMapping (TypeMapping mapping)
 
void WriteQuotedCSharpString (string value)
 
void GenerateHashtableGetBegin (string privateName, string publicName)
 
void GenerateHashtableGetEnd (string privateName)
 
void GeneratePublicMethods (string privateName, string publicName, string[] methods, XmlMapping[] xmlMappings)
 
void GenerateSupportedTypes (Type[] types)
 
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, Hashtable serializers)
 

Static Package Functions

static bool IsWildcard (SpecialMapping mapping)
 

Properties

IndentedWriter Writer [get]
 
int NextMethodNumber [get, set]
 
ReflectionAwareCodeGen RaCodeGen [get]
 
TypeDesc StringTypeDesc [get]
 
TypeDesc QnameTypeDesc [get]
 
string ClassName [get]
 
string Access [get]
 
TypeScope[] Scopes [get]
 
Hashtable MethodNames [get]
 
Hashtable GeneratedMethods [get]
 

Private Member Functions

TypeMapping[] EnsureArrayIndex (TypeMapping[] a, int index)
 
void GenerateTypedSerializers (Hashtable serializers)
 
void GenerateGetSerializer (Hashtable serializers, XmlMapping[] xmlMappings)
 

Private Attributes

readonly IndentedWriter _writer
 
int _nextMethodNumber
 
readonly Hashtable _methodNames = new Hashtable()
 
readonly ReflectionAwareCodeGen _raCodeGen
 
readonly TypeScope[] _scopes
 
readonly TypeDesc _stringTypeDesc
 
readonly TypeDesc _qnameTypeDesc
 
readonly string _access
 
readonly string _className
 
TypeMapping[] _referencedMethods
 
int _references
 
readonly Hashtable _generatedMethods = new Hashtable()
 

Detailed Description

Definition at line 6 of file XmlSerializationCodeGen.cs.


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