C# Class System.Xml.Serialization.XmlSerializationWriterCodeGen

Show file Open project: dotnet/corefx Class Usage Examples

Private Methods

Method Description
CanOptimizeWriteListSequence ( TypeDesc listElementTypeDesc ) : bool
FindChoiceEnumValue ( ElementAccessor element, EnumMapping choiceMapping, bool useReflection ) : string
FindXmlnsIndex ( MemberMapping members ) : int
GenerateBegin ( ) : void
GenerateElement ( XmlMapping xmlMapping ) : string
GenerateEnd ( ) : void
GenerateInitCallbacksMethod ( ) : void
GenerateMembersElement ( XmlMembersMapping xmlMembersMapping ) : string
GenerateMethod ( TypeMapping mapping ) : void
GenerateTypeElement ( XmlTypeMapping xmlTypeMapping ) : string
NextMethodName ( string name ) : string
WriteArray ( string source, string choiceSource, ElementAccessor elements, TextAccessor text, ChoiceIdentifierAccessor choice, TypeDesc arrayTypeDesc ) : void
WriteArrayItems ( ElementAccessor elements, TextAccessor text, ChoiceIdentifierAccessor choice, TypeDesc arrayTypeDesc, string arrayName, string choiceName ) : void
WriteArrayLocalDecl ( string typeName, string variableName, string initValue, TypeDesc arrayTypeDesc ) : void
WriteArrayTypeCompare ( string variable, string escapedTypeName, string elementTypeName, bool useReflection ) : void
WriteAttribute ( string source, AttributeAccessor attribute, string parent ) : void
WriteCheckDefault ( string source, object value, bool isNullable ) : void
WriteChoiceTypeCheck ( string source, string fullTypeName, bool useReflection, ChoiceIdentifierAccessor choice, string enumName, TypeDesc typeDesc ) : void
WriteDerivedTypes ( StructMapping mapping ) : void
WriteElement ( string source, ElementAccessor element, string arrayName, bool writeAccessor ) : void
WriteElementCall ( string func, Type cast, string source, string name, string ns, bool isNullable, bool isAny ) : void
WriteElements ( string source, ElementAccessor elements, TextAccessor text, ChoiceIdentifierAccessor choice, string arrayName, bool writeAccessors, bool isNullable ) : void
WriteElements ( string source, string enumSource, ElementAccessor elements, TextAccessor text, ChoiceIdentifierAccessor choice, string arrayName, bool writeAccessors, bool isNullable ) : void
WriteEmptyTag ( string name, string ns ) : void
WriteEncodedNullTag ( string name, string ns ) : void
WriteEndElement ( ) : void
WriteEndElement ( string source ) : void
WriteEnumAndArrayTypes ( ) : void
WriteEnumCase ( string fullTypeName, ConstantMapping c, bool useReflection ) : void
WriteEnumMethod ( EnumMapping mapping ) : void
WriteEnumValue ( EnumMapping mapping, string source ) : void
WriteExtraMembers ( string loopStartSource, string loopEndSource ) : void
WriteInstanceOf ( string source, string escapedTypeName, bool useReflection ) : void
WriteLiteralNullTag ( string name, string ns ) : void
WriteLocalDecl ( string typeName, string variableName, string initValue, bool useReflection ) : void
WriteMember ( string source, AttributeAccessor attribute, TypeDesc memberTypeDesc, string parent ) : void
WriteMember ( string source, string choiceSource, ElementAccessor elements, TextAccessor text, ChoiceIdentifierAccessor choice, TypeDesc memberTypeDesc, bool writeAccessors ) : void
WriteNamespaces ( string source ) : void
WriteNullCheckBegin ( string source, ElementAccessor element ) : void
WritePrimitive ( string method, string name, string ns, object defaultValue, string source, TypeMapping mapping, bool writeXsiType, bool isElement, bool isNullable ) : void
WritePrimitiveValue ( TypeDesc typeDesc, string source, bool isElement ) : void
WriteQualifiedNameElement ( string name, string ns, object defaultValue, string source, bool nullable, bool IsSoap, TypeMapping mapping ) : void
WriteStartElement ( string name, string ns, bool writePrefixed ) : void
WriteStructMethod ( StructMapping mapping ) : void
WriteTag ( string methodName, string name, string ns ) : void
WriteTag ( string methodName, string name, string ns, bool writePrefixed ) : void
WriteText ( string source, TextAccessor text ) : void
WriteTypeCompare ( string variable, string escapedTypeName, bool useReflection ) : void
WriteValue ( object value ) : void
XmlSerializationWriterCodeGen ( IndentedWriter writer, TypeScope scopes, string access, string className ) : System