C# Class System.Xml.Serialization.XmlCodeExporter

Mostra file Open project: gbarnett/shared-source-cli-2.0 Class Usage Examples

Public Methods

Method Description
AddDefaultValueAttribute ( CodeMemberField field, CodeAttributeDeclarationCollection metadata, object defaultValue, TypeMapping mapping, CodeCommentStatementCollection comments, TypeDesc memberTypeDesc, Accessor accessor, CodeConstructor ctor ) : void
AddMappingMetadata ( CodeAttributeDeclarationCollection metadata, XmlMemberMapping member, string ns ) : void
AddMappingMetadata ( CodeAttributeDeclarationCollection metadata, XmlMemberMapping member, string ns, bool forceUseMemberName ) : void
AddMappingMetadata ( CodeAttributeDeclarationCollection metadata, XmlTypeMapping mapping, string ns ) : void
AddMemberMetadata ( CodeMemberField field, CodeAttributeDeclarationCollection metadata, MemberMapping member, string ns, bool forceUseMemberName, CodeCommentStatementCollection comments, CodeConstructor ctor ) : void
AddRootMetadata ( CodeAttributeDeclarationCollection metadata, TypeMapping typeMapping, string name, string ns, ElementAccessor rootElement ) : void
ExportAnyAttribute ( CodeAttributeDeclarationCollection metadata ) : void
ExportAnyElement ( CodeAttributeDeclarationCollection metadata, string name, string ns, int sequenceId ) : void
ExportArray ( CodeAttributeDeclarationCollection metadata, string name, string ns, bool isNullable, XmlSchemaForm form, int sequenceId ) : void
ExportArrayElements ( CodeAttributeDeclarationCollection metadata, ArrayMapping array, string ns, TypeDesc elementTypeDesc, int nestingLevel ) : void
ExportArrayItem ( CodeAttributeDeclarationCollection metadata, string name, string ns, TypeDesc typeDesc, TypeDesc dataTypeDesc, bool isNullable, XmlSchemaForm form, int nestingLevel ) : void
ExportAttribute ( CodeAttributeDeclarationCollection metadata, string name, string ns, TypeDesc typeDesc, TypeDesc dataTypeDesc, XmlSchemaForm form ) : void
ExportElement ( CodeAttributeDeclarationCollection metadata, string name, string ns, TypeDesc typeDesc, TypeDesc dataTypeDesc, bool isNullable, XmlSchemaForm form, int sequenceId ) : void
ExportElement ( ElementAccessor element ) : void
ExportMember ( CodeTypeDeclaration codeClass, MemberMapping member, string ns, CodeConstructor ctor ) : void
ExportMembersMapping ( XmlMembersMapping xmlMembersMapping ) : void
ExportMetadata ( CodeAttributeDeclarationCollection metadata, Type attributeType, string name, string ns, TypeDesc typeDesc, TypeDesc dataTypeDesc, object isNullable, XmlSchemaForm form, int nestingLevel, int sequenceId ) : void
ExportProperty ( CodeTypeDeclaration codeClass, MemberMapping member, string ns, CodeIdentifiers memberScope, CodeConstructor ctor ) : void
ExportText ( CodeAttributeDeclarationCollection metadata, TypeDesc typeDesc, string dataType ) : void
ExportType ( TypeMapping mapping, string ns ) : void
ExportType ( TypeMapping mapping, string name, string ns, ElementAccessor rootElement, bool checkReference ) : void
ExportTypeMapping ( XmlTypeMapping xmlTypeMapping ) : void
XmlCodeExporter ( CodeNamespace codeNamespace ) : System
XmlCodeExporter ( CodeNamespace codeNamespace, CodeCompileUnit codeCompileUnit ) : System
XmlCodeExporter ( CodeNamespace codeNamespace, CodeCompileUnit codeCompileUnit, CodeDomProvider codeProvider, CodeGenerationOptions options, Hashtable mappings ) : System
XmlCodeExporter ( CodeNamespace codeNamespace, CodeCompileUnit codeCompileUnit, CodeGenerationOptions options ) : System
XmlCodeExporter ( CodeNamespace codeNamespace, CodeCompileUnit codeCompileUnit, CodeGenerationOptions options, Hashtable mappings ) : System

Private Methods

Method Description
AddInitializationStatement ( CodeConstructor ctor, CodeMemberField field, System.CodeDom.CodeExpression init ) : void
DropDefaultAttribute ( Accessor accessor, CodeCommentStatementCollection comments, string type ) : void
EnsureTypesExported ( Accessor accessors, string ns ) : void
ExportDerivedStructs ( StructMapping mapping ) : void
ExportStruct ( StructMapping mapping ) : CodeTypeDeclaration
GetDefaultValueArguments ( PrimitiveMapping mapping, object value, System.CodeDom.CodeExpression &initExpression ) : System.CodeDom.CodeAttributeArgument[]
ImportDefault ( TypeMapping mapping, string defaultValue ) : object
ImportDefaultValue ( TypeMapping mapping, string defaultValue ) : object

Method Details

AddDefaultValueAttribute() public method

public AddDefaultValueAttribute ( CodeMemberField field, CodeAttributeDeclarationCollection metadata, object defaultValue, TypeMapping mapping, CodeCommentStatementCollection comments, TypeDesc memberTypeDesc, Accessor accessor, CodeConstructor ctor ) : void
field System.CodeDom.CodeMemberField
metadata System.CodeDom.CodeAttributeDeclarationCollection
defaultValue object
mapping TypeMapping
comments System.CodeDom.CodeCommentStatementCollection
memberTypeDesc TypeDesc
accessor Accessor
ctor System.CodeDom.CodeConstructor
return void

AddMappingMetadata() public method

public AddMappingMetadata ( CodeAttributeDeclarationCollection metadata, XmlMemberMapping member, string ns ) : void
metadata System.CodeDom.CodeAttributeDeclarationCollection
member XmlMemberMapping
ns string
return void

AddMappingMetadata() public method

public AddMappingMetadata ( CodeAttributeDeclarationCollection metadata, XmlMemberMapping member, string ns, bool forceUseMemberName ) : void
metadata System.CodeDom.CodeAttributeDeclarationCollection
member XmlMemberMapping
ns string
forceUseMemberName bool
return void

AddMappingMetadata() public method

public AddMappingMetadata ( CodeAttributeDeclarationCollection metadata, XmlTypeMapping mapping, string ns ) : void
metadata System.CodeDom.CodeAttributeDeclarationCollection
mapping XmlTypeMapping
ns string
return void

AddMemberMetadata() public method

public AddMemberMetadata ( CodeMemberField field, CodeAttributeDeclarationCollection metadata, MemberMapping member, string ns, bool forceUseMemberName, CodeCommentStatementCollection comments, CodeConstructor ctor ) : void
field System.CodeDom.CodeMemberField
metadata System.CodeDom.CodeAttributeDeclarationCollection
member MemberMapping
ns string
forceUseMemberName bool
comments System.CodeDom.CodeCommentStatementCollection
ctor System.CodeDom.CodeConstructor
return void

AddRootMetadata() public method

public AddRootMetadata ( CodeAttributeDeclarationCollection metadata, TypeMapping typeMapping, string name, string ns, ElementAccessor rootElement ) : void
metadata System.CodeDom.CodeAttributeDeclarationCollection
typeMapping TypeMapping
name string
ns string
rootElement ElementAccessor
return void

ExportAnyAttribute() public method

public ExportAnyAttribute ( CodeAttributeDeclarationCollection metadata ) : void
metadata System.CodeDom.CodeAttributeDeclarationCollection
return void

ExportAnyElement() public method

public ExportAnyElement ( CodeAttributeDeclarationCollection metadata, string name, string ns, int sequenceId ) : void
metadata System.CodeDom.CodeAttributeDeclarationCollection
name string
ns string
sequenceId int
return void

ExportArray() public method

public ExportArray ( CodeAttributeDeclarationCollection metadata, string name, string ns, bool isNullable, XmlSchemaForm form, int sequenceId ) : void
metadata System.CodeDom.CodeAttributeDeclarationCollection
name string
ns string
isNullable bool
form XmlSchemaForm
sequenceId int
return void

ExportArrayElements() public method

public ExportArrayElements ( CodeAttributeDeclarationCollection metadata, ArrayMapping array, string ns, TypeDesc elementTypeDesc, int nestingLevel ) : void
metadata System.CodeDom.CodeAttributeDeclarationCollection
array ArrayMapping
ns string
elementTypeDesc TypeDesc
nestingLevel int
return void

ExportArrayItem() public method

public ExportArrayItem ( CodeAttributeDeclarationCollection metadata, string name, string ns, TypeDesc typeDesc, TypeDesc dataTypeDesc, bool isNullable, XmlSchemaForm form, int nestingLevel ) : void
metadata System.CodeDom.CodeAttributeDeclarationCollection
name string
ns string
typeDesc TypeDesc
dataTypeDesc TypeDesc
isNullable bool
form XmlSchemaForm
nestingLevel int
return void

ExportAttribute() public method

public ExportAttribute ( CodeAttributeDeclarationCollection metadata, string name, string ns, TypeDesc typeDesc, TypeDesc dataTypeDesc, XmlSchemaForm form ) : void
metadata System.CodeDom.CodeAttributeDeclarationCollection
name string
ns string
typeDesc TypeDesc
dataTypeDesc TypeDesc
form XmlSchemaForm
return void

ExportElement() public method

public ExportElement ( CodeAttributeDeclarationCollection metadata, string name, string ns, TypeDesc typeDesc, TypeDesc dataTypeDesc, bool isNullable, XmlSchemaForm form, int sequenceId ) : void
metadata System.CodeDom.CodeAttributeDeclarationCollection
name string
ns string
typeDesc TypeDesc
dataTypeDesc TypeDesc
isNullable bool
form XmlSchemaForm
sequenceId int
return void

ExportElement() public method

public ExportElement ( ElementAccessor element ) : void
element ElementAccessor
return void

ExportMember() public method

public ExportMember ( CodeTypeDeclaration codeClass, MemberMapping member, string ns, CodeConstructor ctor ) : void
codeClass System.CodeDom.CodeTypeDeclaration
member MemberMapping
ns string
ctor System.CodeDom.CodeConstructor
return void

ExportMembersMapping() public method

public ExportMembersMapping ( XmlMembersMapping xmlMembersMapping ) : void
xmlMembersMapping XmlMembersMapping
return void

ExportMetadata() public method

public ExportMetadata ( CodeAttributeDeclarationCollection metadata, Type attributeType, string name, string ns, TypeDesc typeDesc, TypeDesc dataTypeDesc, object isNullable, XmlSchemaForm form, int nestingLevel, int sequenceId ) : void
metadata System.CodeDom.CodeAttributeDeclarationCollection
attributeType Type
name string
ns string
typeDesc TypeDesc
dataTypeDesc TypeDesc
isNullable object
form XmlSchemaForm
nestingLevel int
sequenceId int
return void

ExportProperty() public method

public ExportProperty ( CodeTypeDeclaration codeClass, MemberMapping member, string ns, CodeIdentifiers memberScope, CodeConstructor ctor ) : void
codeClass System.CodeDom.CodeTypeDeclaration
member MemberMapping
ns string
memberScope CodeIdentifiers
ctor System.CodeDom.CodeConstructor
return void

ExportText() public method

public ExportText ( CodeAttributeDeclarationCollection metadata, TypeDesc typeDesc, string dataType ) : void
metadata System.CodeDom.CodeAttributeDeclarationCollection
typeDesc TypeDesc
dataType string
return void

ExportType() public method

public ExportType ( TypeMapping mapping, string ns ) : void
mapping TypeMapping
ns string
return void

ExportType() public method

public ExportType ( TypeMapping mapping, string name, string ns, ElementAccessor rootElement, bool checkReference ) : void
mapping TypeMapping
name string
ns string
rootElement ElementAccessor
checkReference bool
return void

ExportTypeMapping() public method

public ExportTypeMapping ( XmlTypeMapping xmlTypeMapping ) : void
xmlTypeMapping XmlTypeMapping
return void

XmlCodeExporter() public method

public XmlCodeExporter ( CodeNamespace codeNamespace ) : System
codeNamespace System.CodeDom.CodeNamespace
return System

XmlCodeExporter() public method

public XmlCodeExporter ( CodeNamespace codeNamespace, CodeCompileUnit codeCompileUnit ) : System
codeNamespace System.CodeDom.CodeNamespace
codeCompileUnit System.CodeDom.CodeCompileUnit
return System

XmlCodeExporter() public method

public XmlCodeExporter ( CodeNamespace codeNamespace, CodeCompileUnit codeCompileUnit, CodeDomProvider codeProvider, CodeGenerationOptions options, Hashtable mappings ) : System
codeNamespace System.CodeDom.CodeNamespace
codeCompileUnit System.CodeDom.CodeCompileUnit
codeProvider CodeDomProvider
options CodeGenerationOptions
mappings System.Collections.Hashtable
return System

XmlCodeExporter() public method

public XmlCodeExporter ( CodeNamespace codeNamespace, CodeCompileUnit codeCompileUnit, CodeGenerationOptions options ) : System
codeNamespace System.CodeDom.CodeNamespace
codeCompileUnit System.CodeDom.CodeCompileUnit
options CodeGenerationOptions
return System

XmlCodeExporter() public method

public XmlCodeExporter ( CodeNamespace codeNamespace, CodeCompileUnit codeCompileUnit, CodeGenerationOptions options, Hashtable mappings ) : System
codeNamespace System.CodeDom.CodeNamespace
codeCompileUnit System.CodeDom.CodeCompileUnit
options CodeGenerationOptions
mappings System.Collections.Hashtable
return System