OpenPetra
Free Administration Software for Non-Profits
Ict.Tools.CodeGeneration.AutoGenerationTools Class Reference

some useful functions for auto generating code More...

Static Public Member Functions

static void AddParameter (ref string MethodDeclaration, ref bool firstParameter, int align, string AParamName, ParameterModifiers AParamModifier, string AParamTypeName)
 prepare the method declaration for another parameter; this is useful for writing method declarations More...
 
static void FormatParameters (List< ParameterDeclarationExpression >AMethodParameters, out string AActualParameters, out string AParameterDefinition)
 format the actual parameters, and the parameter definition of a method More...
 
static string TypeToString (TypeReference ATypeRef, string ANamespace)
 format a type name to a string. reduce the length of the type name if the namespace is unique. More...
 

Detailed Description

some useful functions for auto generating code

Member Function Documentation

◆ AddParameter()

static void Ict.Tools.CodeGeneration.AutoGenerationTools.AddParameter ( ref string  MethodDeclaration,
ref bool  firstParameter,
int  align,
string  AParamName,
ParameterModifiers  AParamModifier,
string  AParamTypeName 
)
inlinestatic

prepare the method declaration for another parameter; this is useful for writing method declarations

Parameters
MethodDeclaration
firstParameter
align
AParamName
AParamModifier
AParamTypeName

◆ FormatParameters()

static void Ict.Tools.CodeGeneration.AutoGenerationTools.FormatParameters ( List< ParameterDeclarationExpression >  AMethodParameters,
out string  AActualParameters,
out string  AParameterDefinition 
)
inlinestatic

format the actual parameters, and the parameter definition of a method

◆ TypeToString()

static string Ict.Tools.CodeGeneration.AutoGenerationTools.TypeToString ( TypeReference  ATypeRef,
string  ANamespace 
)
inlinestatic

format a type name to a string. reduce the length of the type name if the namespace is unique.

Parameters
ATypeRef
ANamespace
Returns

The documentation for this class was generated from the following file: