Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
System.Xml.Serialization.ReflectionAwareCodeGen Class Referencesealed

Package Functions

 ReflectionAwareCodeGen (IndentedWriter writer)
 
void WriteReflectionInit (TypeScope scope)
 
string GetReflectionVariable (string typeFullName, string memberName)
 
string GetStringForMethodInvoke (string obj, string escapedTypeName, string methodName, bool useReflection, params string[] args)
 
string GetStringForEnumCompare (EnumMapping mapping, string memberName, bool useReflection)
 
string GetStringForEnumLongValue (string variable, bool useReflection)
 
string GetStringForTypeof (string typeFullName, bool useReflection)
 
string GetStringForMember (string obj, string memberName, TypeDesc typeDesc)
 
string GetStringForEnumMember (string typeFullName, string memberName, bool useReflection)
 
string GetStringForArrayMember (string arrayName, string subscript, TypeDesc arrayTypeDesc)
 
string GetStringForMethod (string obj, string typeFullName, string memberName, bool useReflection)
 
string GetStringForCreateInstance (string escapedTypeName, bool useReflection, bool ctorInaccessible, bool cast)
 
string GetStringForCreateInstance (string escapedTypeName, bool useReflection, bool ctorInaccessible, bool cast, string arg)
 
string GetStringForCreateInstance (string type, string cast, bool nonPublic, string arg)
 
void WriteLocalDecl (string typeFullName, string variableName, string initValue, bool useReflection)
 
void WriteCreateInstance (string escapedName, string source, bool useReflection, bool ctorInaccessible)
 
void WriteInstanceOf (string source, string escapedTypeName, bool useReflection)
 
void WriteArrayLocalDecl (string typeName, string variableName, string initValue, TypeDesc arrayTypeDesc)
 
void WriteEnumCase (string fullTypeName, ConstantMapping c, bool useReflection)
 
void WriteTypeCompare (string variable, string escapedTypeName, bool useReflection)
 
void WriteArrayTypeCompare (string variable, string escapedTypeName, string elementTypeName, bool useReflection)
 
void WriteQuotedCSharpString (string value)
 

Static Package Functions

static void WriteQuotedCSharpString (IndentedWriter writer, string value)
 

Private Member Functions

string WriteTypeInfo (TypeScope scope, TypeDesc typeDesc, Type type)
 
void InitTheFirstTime ()
 
void WriteMappingInfo (TypeMapping mapping, string typeVariable, [DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicConstructors|DynamicallyAccessedMemberTypes.PublicMethods|DynamicallyAccessedMemberTypes.PublicFields|DynamicallyAccessedMemberTypes.PublicNestedTypes|DynamicallyAccessedMemberTypes.PublicProperties|DynamicallyAccessedMemberTypes.PublicEvents)] Type type)
 
void WriteCollectionInfo (string typeVariable, TypeDesc typeDesc, [DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicConstructors|DynamicallyAccessedMemberTypes.PublicMethods|DynamicallyAccessedMemberTypes.PublicFields|DynamicallyAccessedMemberTypes.PublicNestedTypes|DynamicallyAccessedMemberTypes.PublicProperties|DynamicallyAccessedMemberTypes.PublicEvents)] Type type)
 
string WriteAssemblyInfo (Type type)
 
string WriteMemberInfo ([DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicConstructors|DynamicallyAccessedMemberTypes.PublicMethods|DynamicallyAccessedMemberTypes.PublicFields|DynamicallyAccessedMemberTypes.PublicNestedTypes|DynamicallyAccessedMemberTypes.PublicProperties|DynamicallyAccessedMemberTypes.PublicEvents)] Type type, string escapedName, string typeVariable, string memberName)
 
string WriteMethodInfo (string escapedName, string typeVariable, string memberName, bool isNonPublic, params string[] paramTypes)
 
string WriteDefaultIndexerInit ([DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicConstructors|DynamicallyAccessedMemberTypes.PublicMethods|DynamicallyAccessedMemberTypes.PublicFields|DynamicallyAccessedMemberTypes.PublicNestedTypes|DynamicallyAccessedMemberTypes.PublicProperties|DynamicallyAccessedMemberTypes.PublicEvents)] Type type, string escapedName, bool collectionUseReflection, bool elementUseReflection)
 
string GenerateVariableName (string prefix, string fullName)
 

Private Attributes

Hashtable _reflectionVariables
 
int _nextReflectionVariableNumber
 
readonly IndentedWriter _writer
 

Detailed Description

Definition at line 9 of file ReflectionAwareCodeGen.cs.


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