C# Class System.Xml.Serialization.ReflectionAwareCodeGen

Show file Open project: dotnet/corefx Class Usage Examples

Private Methods

Method Description
GenerateVariableName ( string prefix, string fullName ) : string
GetReflectionVariable ( string typeFullName, string memberName ) : string
GetStringForArrayMember ( string arrayName, string subscript, TypeDesc arrayTypeDesc ) : 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 ) : string
GetStringForEnumCompare ( EnumMapping mapping, string memberName, bool useReflection ) : string
GetStringForEnumLongValue ( string variable, bool useReflection ) : string
GetStringForEnumMember ( string typeFullName, string memberName, bool useReflection ) : string
GetStringForMember ( string obj, string memberName, TypeDesc typeDesc ) : string
GetStringForMethod ( string obj, string typeFullName, string memberName, bool useReflection ) : string
GetStringForMethodInvoke ( string obj, string escapedTypeName, string methodName, bool useReflection ) : string
GetStringForTypeof ( string typeFullName, bool useReflection ) : string
InitTheFirstTime ( ) : void
ReflectionAwareCodeGen ( IndentedWriter writer ) : System
WriteArrayLocalDecl ( string typeName, string variableName, string initValue, TypeDesc arrayTypeDesc ) : void
WriteArrayTypeCompare ( string variable, string escapedTypeName, string elementTypeName, bool useReflection ) : void
WriteAssemblyInfo ( Type type ) : string
WriteCollectionInfo ( string typeVariable, TypeDesc typeDesc, Type type ) : void
WriteCreateInstance ( string escapedName, string source, bool useReflection, bool ctorInaccessible ) : void
WriteDefaultIndexerInit ( Type type, string escapedName, bool collectionUseReflection, bool elementUseReflection ) : string
WriteEnumCase ( string fullTypeName, ConstantMapping c, bool useReflection ) : void
WriteInstanceOf ( string source, string escapedTypeName, bool useReflection ) : void
WriteLocalDecl ( string typeFullName, string variableName, string initValue, bool useReflection ) : void
WriteMappingInfo ( TypeMapping mapping, string typeVariable, Type type ) : void
WriteMemberInfo ( Type type, string escapedName, string typeVariable, string memberName ) : string
WriteMethodInfo ( string escapedName, string typeVariable, string memberName, bool isNonPublic ) : string
WriteQuotedCSharpString ( IndentedWriter writer, string value ) : void
WriteQuotedCSharpString ( string value ) : void
WriteReflectionInit ( TypeScope scope ) : void
WriteTypeCompare ( string variable, string escapedTypeName, bool useReflection ) : void
WriteTypeInfo ( TypeScope scope, TypeDesc typeDesc, Type type ) : string