Method | Description | |
---|---|---|
CSharpCodeGenerator ( ) : System | ||
CSharpCodeGenerator ( string>.IDictionary |
||
ValidateIdentifier ( string identifier ) : void |
Method | Description | |
---|---|---|
CreateEscapedIdentifier ( string value ) : string | ||
CreateValidIdentifier ( string value ) : string | ||
GenerateArgumentReferenceExpression ( |
||
GenerateArrayCreateExpression ( |
||
GenerateArrayIndexerExpression ( |
||
GenerateAssignStatement ( |
||
GenerateAttachEventStatement ( System.CodeDom.CodeAttachEventStatement statement ) : void | ||
GenerateAttributeDeclarationsEnd ( |
||
GenerateAttributeDeclarationsStart ( CodeAttributeDeclarationCollection attributes ) : void | ||
GenerateBaseReferenceExpression ( CodeBaseReferenceExpression expression ) : void | ||
GenerateCastExpression ( CodeCastExpression expression ) : void | ||
GenerateComment ( CodeComment comment ) : void | ||
GenerateCompileUnit ( CodeCompileUnit compileUnit ) : void | ||
GenerateCompileUnitStart ( CodeCompileUnit compileUnit ) : void | ||
GenerateConditionStatement ( CodeConditionStatement statement ) : void | ||
GenerateConstructor ( CodeConstructor constructor, CodeTypeDeclaration declaration ) : void | ||
GenerateDecimalValue ( decimal d ) : void | ||
GenerateDefaultValueExpression ( CodeDefaultValueExpression e ) : void | ||
GenerateDelegateCreateExpression ( CodeDelegateCreateExpression expression ) : void | ||
GenerateDelegateInvokeExpression ( CodeDelegateInvokeExpression expression ) : void | ||
GenerateDirectives ( CodeDirectiveCollection directives ) : void | ||
GenerateEntryPointMethod ( CodeEntryPointMethod method, CodeTypeDeclaration declaration ) : void | ||
GenerateEvent ( CodeMemberEvent eventRef, CodeTypeDeclaration declaration ) : void | ||
GenerateEventReferenceExpression ( CodeEventReferenceExpression expression ) : void | ||
GenerateExpressionStatement ( CodeExpressionStatement statement ) : void | ||
GenerateField ( CodeMemberField field ) : void | ||
GenerateFieldReferenceExpression ( CodeFieldReferenceExpression expression ) : void | ||
GenerateGotoStatement ( CodeGotoStatement statement ) : void | ||
GenerateIndexerExpression ( CodeIndexerExpression expression ) : void | ||
GenerateIterationStatement ( CodeIterationStatement statement ) : void | ||
GenerateLabeledStatement ( CodeLabeledStatement statement ) : void | ||
GenerateLinePragmaEnd ( CodeLinePragma linePragma ) : void | ||
GenerateLinePragmaStart ( CodeLinePragma linePragma ) : void | ||
GenerateMethod ( CodeMemberMethod method, CodeTypeDeclaration declaration ) : void | ||
GenerateMethodInvokeExpression ( CodeMethodInvokeExpression expression ) : void | ||
GenerateMethodReferenceExpression ( CodeMethodReferenceExpression expression ) : void | ||
GenerateMethodReturnStatement ( CodeMethodReturnStatement statement ) : void | ||
GenerateNamespaceEnd ( CodeNamespace ns ) : void | ||
GenerateNamespaceImport ( CodeNamespaceImport import ) : void | ||
GenerateNamespaceStart ( CodeNamespace ns ) : void | ||
GenerateObjectCreateExpression ( CodeObjectCreateExpression expression ) : void | ||
GenerateParameterDeclarationExpression ( CodeParameterDeclarationExpression e ) : void | ||
GeneratePrimitiveExpression ( CodePrimitiveExpression e ) : void | ||
GenerateProperty ( CodeMemberProperty property, CodeTypeDeclaration declaration ) : void | ||
GeneratePropertyReferenceExpression ( CodePropertyReferenceExpression expression ) : void | ||
GeneratePropertySetValueReferenceExpression ( CodePropertySetValueReferenceExpression expression ) : void | ||
GenerateRemoveEventStatement ( CodeRemoveEventStatement statement ) : void | ||
GenerateSingleFloatValue ( float f ) : void | ||
GenerateSnippetExpression ( CodeSnippetExpression expression ) : void | ||
GenerateSnippetMember ( CodeSnippetTypeMember member ) : void | ||
GenerateThisReferenceExpression ( CodeThisReferenceExpression expression ) : void | ||
GenerateThrowExceptionStatement ( CodeThrowExceptionStatement statement ) : void | ||
GenerateTryCatchFinallyStatement ( CodeTryCatchFinallyStatement statement ) : void | ||
GenerateTypeConstructor ( CodeTypeConstructor constructor ) : void | ||
GenerateTypeEnd ( CodeTypeDeclaration declaration ) : void | ||
GenerateTypeOfExpression ( CodeTypeOfExpression e ) : void | ||
GenerateTypeStart ( CodeTypeDeclaration declaration ) : void | ||
GenerateVariableDeclarationStatement ( CodeVariableDeclarationStatement statement ) : void | ||
GenerateVariableReferenceExpression ( CodeVariableReferenceExpression expression ) : void | ||
GetTypeOutput ( CodeTypeReference type ) : string | ||
IsValidIdentifier ( string identifier ) : bool | ||
OutputFieldScopeModifier ( MemberAttributes attributes ) : void | ||
OutputMemberAccessModifier ( MemberAttributes attributes ) : void | ||
OutputMemberScopeModifier ( MemberAttributes attributes ) : void | ||
OutputType ( CodeTypeReference type ) : void | ||
Supports ( GeneratorSupport supports ) : bool |
Method | Description | |
---|---|---|
DetermineTypeOutput ( |
||
FillKeywordTable ( ) : void | ||
GenerateCharValue ( char c ) : void | ||
GenerateCodeChecksumPragma ( CodeChecksumPragma pragma ) : void | ||
GenerateCodeRegionDirective ( CodeRegionDirective region ) : void | ||
GenerateGenericsConstraints ( CodeTypeParameterCollection parameters ) : void | ||
GenerateGenericsParameters ( CodeTypeParameterCollection parameters ) : void | ||
GetSafeName ( string id ) : string | ||
GetTypeArguments ( CodeTypeReferenceCollection collection ) : string | ||
IsAbstract ( MemberAttributes attributes ) : bool | ||
OutputAttributeDeclaration ( CodeAttributeDeclaration attribute ) : void | ||
OutputAttributes ( CodeAttributeDeclarationCollection attributes, string prefix, bool inline ) : void | ||
OutputStartBrace ( ) : void | ||
OutputTypeArguments ( CodeTypeReferenceCollection typeArguments, StringBuilder sb, int count ) : void | ||
OutputTypeAttributes ( CodeTypeDeclaration declaration ) : void | ||
OutputVTableModifier ( MemberAttributes attributes ) : void | ||
QuoteSnippetString ( string value ) : string | ||
is_identifier_part_character ( char c ) : bool | ||
is_identifier_start_character ( char c ) : bool |
public CSharpCodeGenerator ( string>.IDictionary |
||
providerOptions | string>.IDictionary | |
return | System |
protected CreateEscapedIdentifier ( string value ) : string | ||
value | string | |
return | string |
protected CreateValidIdentifier ( string value ) : string | ||
value | string | |
return | string |
protected GenerateArgumentReferenceExpression ( |
||
expression | ||
return | void |
protected GenerateArrayCreateExpression ( |
||
expression | ||
return | void |
protected GenerateArrayIndexerExpression ( |
||
expression | ||
return | void |
protected GenerateAssignStatement ( |
||
statement | ||
return | void |
protected GenerateAttachEventStatement ( System.CodeDom.CodeAttachEventStatement statement ) : void | ||
statement | System.CodeDom.CodeAttachEventStatement | |
return | void |
protected GenerateAttributeDeclarationsEnd ( |
||
attributes | ||
return | void |
protected GenerateAttributeDeclarationsStart ( CodeAttributeDeclarationCollection attributes ) : void | ||
attributes | CodeAttributeDeclarationCollection | |
return | void |
protected GenerateBaseReferenceExpression ( CodeBaseReferenceExpression expression ) : void | ||
expression | CodeBaseReferenceExpression | |
return | void |
protected GenerateCastExpression ( CodeCastExpression expression ) : void | ||
expression | CodeCastExpression | |
return | void |
protected GenerateComment ( CodeComment comment ) : void | ||
comment | CodeComment | |
return | void |
protected GenerateCompileUnit ( CodeCompileUnit compileUnit ) : void | ||
compileUnit | CodeCompileUnit | |
return | void |
protected GenerateCompileUnitStart ( CodeCompileUnit compileUnit ) : void | ||
compileUnit | CodeCompileUnit | |
return | void |
protected GenerateConditionStatement ( CodeConditionStatement statement ) : void | ||
statement | CodeConditionStatement | |
return | void |
protected GenerateConstructor ( CodeConstructor constructor, CodeTypeDeclaration declaration ) : void | ||
constructor | CodeConstructor | |
declaration | CodeTypeDeclaration | |
return | void |
protected GenerateDecimalValue ( decimal d ) : void | ||
d | decimal | |
return | void |
protected GenerateDefaultValueExpression ( CodeDefaultValueExpression e ) : void | ||
e | CodeDefaultValueExpression | |
return | void |
protected GenerateDelegateCreateExpression ( CodeDelegateCreateExpression expression ) : void | ||
expression | CodeDelegateCreateExpression | |
return | void |
protected GenerateDelegateInvokeExpression ( CodeDelegateInvokeExpression expression ) : void | ||
expression | CodeDelegateInvokeExpression | |
return | void |
protected GenerateDirectives ( CodeDirectiveCollection directives ) : void | ||
directives | CodeDirectiveCollection | |
return | void |
protected GenerateEntryPointMethod ( CodeEntryPointMethod method, CodeTypeDeclaration declaration ) : void | ||
method | CodeEntryPointMethod | |
declaration | CodeTypeDeclaration | |
return | void |
protected GenerateEvent ( CodeMemberEvent eventRef, CodeTypeDeclaration declaration ) : void | ||
eventRef | CodeMemberEvent | |
declaration | CodeTypeDeclaration | |
return | void |
protected GenerateEventReferenceExpression ( CodeEventReferenceExpression expression ) : void | ||
expression | CodeEventReferenceExpression | |
return | void |
protected GenerateExpressionStatement ( CodeExpressionStatement statement ) : void | ||
statement | CodeExpressionStatement | |
return | void |
protected GenerateField ( CodeMemberField field ) : void | ||
field | CodeMemberField | |
return | void |
protected GenerateFieldReferenceExpression ( CodeFieldReferenceExpression expression ) : void | ||
expression | CodeFieldReferenceExpression | |
return | void |
protected GenerateGotoStatement ( CodeGotoStatement statement ) : void | ||
statement | CodeGotoStatement | |
return | void |
protected GenerateIndexerExpression ( CodeIndexerExpression expression ) : void | ||
expression | CodeIndexerExpression | |
return | void |
protected GenerateIterationStatement ( CodeIterationStatement statement ) : void | ||
statement | CodeIterationStatement | |
return | void |
protected GenerateLabeledStatement ( CodeLabeledStatement statement ) : void | ||
statement | CodeLabeledStatement | |
return | void |
protected GenerateLinePragmaEnd ( CodeLinePragma linePragma ) : void | ||
linePragma | CodeLinePragma | |
return | void |
protected GenerateLinePragmaStart ( CodeLinePragma linePragma ) : void | ||
linePragma | CodeLinePragma | |
return | void |
protected GenerateMethod ( CodeMemberMethod method, CodeTypeDeclaration declaration ) : void | ||
method | CodeMemberMethod | |
declaration | CodeTypeDeclaration | |
return | void |
protected GenerateMethodInvokeExpression ( CodeMethodInvokeExpression expression ) : void | ||
expression | CodeMethodInvokeExpression | |
return | void |
protected GenerateMethodReferenceExpression ( CodeMethodReferenceExpression expression ) : void | ||
expression | CodeMethodReferenceExpression | |
return | void |
protected GenerateMethodReturnStatement ( CodeMethodReturnStatement statement ) : void | ||
statement | CodeMethodReturnStatement | |
return | void |
protected GenerateNamespaceEnd ( CodeNamespace ns ) : void | ||
ns | CodeNamespace | |
return | void |
protected GenerateNamespaceImport ( CodeNamespaceImport import ) : void | ||
import | CodeNamespaceImport | |
return | void |
protected GenerateNamespaceStart ( CodeNamespace ns ) : void | ||
ns | CodeNamespace | |
return | void |
protected GenerateObjectCreateExpression ( CodeObjectCreateExpression expression ) : void | ||
expression | CodeObjectCreateExpression | |
return | void |
protected GenerateParameterDeclarationExpression ( CodeParameterDeclarationExpression e ) : void | ||
e | CodeParameterDeclarationExpression | |
return | void |
protected GeneratePrimitiveExpression ( CodePrimitiveExpression e ) : void | ||
e | CodePrimitiveExpression | |
return | void |
protected GenerateProperty ( CodeMemberProperty property, CodeTypeDeclaration declaration ) : void | ||
property | CodeMemberProperty | |
declaration | CodeTypeDeclaration | |
return | void |
protected GeneratePropertyReferenceExpression ( CodePropertyReferenceExpression expression ) : void | ||
expression | CodePropertyReferenceExpression | |
return | void |
protected GeneratePropertySetValueReferenceExpression ( CodePropertySetValueReferenceExpression expression ) : void | ||
expression | CodePropertySetValueReferenceExpression | |
return | void |
protected GenerateRemoveEventStatement ( CodeRemoveEventStatement statement ) : void | ||
statement | CodeRemoveEventStatement | |
return | void |
protected GenerateSingleFloatValue ( float f ) : void | ||
f | float | |
return | void |
protected GenerateSnippetExpression ( CodeSnippetExpression expression ) : void | ||
expression | CodeSnippetExpression | |
return | void |
protected GenerateSnippetMember ( CodeSnippetTypeMember member ) : void | ||
member | CodeSnippetTypeMember | |
return | void |
protected GenerateThisReferenceExpression ( CodeThisReferenceExpression expression ) : void | ||
expression | CodeThisReferenceExpression | |
return | void |
protected GenerateThrowExceptionStatement ( CodeThrowExceptionStatement statement ) : void | ||
statement | CodeThrowExceptionStatement | |
return | void |
protected GenerateTryCatchFinallyStatement ( CodeTryCatchFinallyStatement statement ) : void | ||
statement | CodeTryCatchFinallyStatement | |
return | void |
protected GenerateTypeConstructor ( CodeTypeConstructor constructor ) : void | ||
constructor | CodeTypeConstructor | |
return | void |
protected GenerateTypeEnd ( CodeTypeDeclaration declaration ) : void | ||
declaration | CodeTypeDeclaration | |
return | void |
protected GenerateTypeOfExpression ( CodeTypeOfExpression e ) : void | ||
e | CodeTypeOfExpression | |
return | void |
protected GenerateTypeStart ( CodeTypeDeclaration declaration ) : void | ||
declaration | CodeTypeDeclaration | |
return | void |
protected GenerateVariableDeclarationStatement ( CodeVariableDeclarationStatement statement ) : void | ||
statement | CodeVariableDeclarationStatement | |
return | void |
protected GenerateVariableReferenceExpression ( CodeVariableReferenceExpression expression ) : void | ||
expression | CodeVariableReferenceExpression | |
return | void |
protected GetTypeOutput ( CodeTypeReference type ) : string | ||
type | CodeTypeReference | |
return | string |
protected IsValidIdentifier ( string identifier ) : bool | ||
identifier | string | |
return | bool |
protected OutputFieldScopeModifier ( MemberAttributes attributes ) : void | ||
attributes | MemberAttributes | |
return | void |
protected OutputMemberAccessModifier ( MemberAttributes attributes ) : void | ||
attributes | MemberAttributes | |
return | void |
protected OutputMemberScopeModifier ( MemberAttributes attributes ) : void | ||
attributes | MemberAttributes | |
return | void |
protected OutputType ( CodeTypeReference type ) : void | ||
type | CodeTypeReference | |
return | void |
protected Supports ( GeneratorSupport supports ) : bool | ||
supports | GeneratorSupport | |
return | bool |
public ValidateIdentifier ( string identifier ) : void | ||
identifier | string | |
return | void |