Method | Description | |
---|---|---|
CSharpTypeGenerator ( string directory, string ns ) : System |
Constructs a new csharp type generator instance
|
|
Generate ( |
Generates code for a named type
|
Method | Description | |
---|---|---|
_choiceOptionNeedsWrapper ( |
Determines whether a choice option requires a wrapper type
|
|
_fieldNameToTempName ( string fieldName ) : string |
Transforms a field name into a temporary variable name
|
|
_fieldNameToTypeName ( string fieldName ) : string |
Transforms a field name to a type name for an anonymous type
|
|
_generateArrayType ( CSharpEmitter emitter, string typeName, string fieldName, |
Generates an array type
|
|
_generateBitString ( CSharpEmitter emitter, string typeName, string fieldName, |
Generates a bit string type
|
|
_generateChoice ( CSharpEmitter emitter, string typeName, string fieldName, |
Generates a choice type
|
|
_generateChoiceOption ( CSharpEmitter emitter, string choiceName, |
Generates a choice option
|
|
_generateChoiceOptionWrappers ( CSharpEmitter emitter, string choiceName, |
If necessary, generates a wrapper for each non-sequence, non-choice option
|
|
_generateChoiceOptions ( CSharpEmitter emitter, string name, |
Generates the option types for a choice
|
|
_generateChoiceTags ( CSharpEmitter emitter, |
Generates the tags enumeration for a choice
|
|
_generateDefinition ( CSharpEmitter emitter, string name, string fieldName, |
Generates a definition
|
|
_generateEnumeration ( CSharpEmitter emitter, string typeName, string fieldName, |
Generates an enumeration type
|
|
_generateNameType ( CSharpEmitter emitter, string typeName, string fieldName, |
Generates an name alias type
|
|
_generateOptionType ( CSharpEmitter emitter, string typeName, string fieldName, |
Generates an option type
|
|
_generatePrimitiveType ( CSharpEmitter emitter, string typeName, string fieldName, |
Generates an array type
|
|
_generateSequence ( CSharpEmitter emitter, string typeName, string fieldName, |
Generates a sequence type
|
|
_generateSequenceFields ( CSharpEmitter emitter, |
Generates types for sequence fields
|
|
_generateWrapperType ( CSharpEmitter emitter, string name, string wrappedType, string choiceBase = null, string tag = null ) : CSharpEmitter |
Generates a wrapper type
|
|
_getChoiceOptionForwardedParameters ( |
Gets the parameters that need to be forwarded to a choice option's constructor
|
|
_getDefinitionName ( string typeName, string fieldName, |
Gets the type name for a defined type
|
|
_sequenceFieldEffectiveNameForType ( |
Returns the effective field name for a sequence field that is used to determine the type name for the field
|
|
_sequenceFieldNeedsTypeSuffix ( |
Determines whether a sequence field type name needs -type appended to it so it won't conflict with a property name
|
|
_sequenceFieldTypeName ( |
Returns the type name for a sequence field
|
|
_transformFieldName ( string name ) : string |
Gets a CSharp field name from
|
|
_transformTypeName ( string name ) : string |
Gets a CSharp type name from a definition name
|
public CSharpTypeGenerator ( string directory, string ns ) : System | ||
directory | string | The directory to place generated files |
ns | string | The namespace of the generated types |
return | System |
public Generate ( |
||
type | The type to generate for | |
return | void |