Class Generator
Strong-typed messages code generator.
Inherited Members
Namespace: OnixS.SimpleBinaryEncoding.CodeGenerator
Assembly: OnixS.SimpleBinaryEncoding.dll
Syntax
public class Generator
Methods
GenerateAssembly<THeader>(TemplateLibrary, string)
Generates the assembly.
Declaration
public Assembly GenerateAssembly<THeader>(TemplateLibrary lib, string namespaceName) where THeader : unmanaged, IMessageHeader
Parameters
Type | Name | Description |
---|---|---|
TemplateLibrary | lib | The template library. |
string | namespaceName | The namespace name. |
Returns
Type | Description |
---|---|
Assembly | The generated assembly. |
Type Parameters
Name | Description |
---|---|
THeader | The message header type. |
GenerateAssembly<THeader>(TemplateLibrary, string, string, string)
Generates the assembly.
Declaration
public Assembly GenerateAssembly<THeader>(TemplateLibrary lib, string namespaceName, string fileName, string keyFile = null) where THeader : unmanaged, IMessageHeader
Parameters
Type | Name | Description |
---|---|---|
TemplateLibrary | lib | The template library. |
string | namespaceName | The namespace name. |
string | fileName | The output file name. |
string | keyFile | The strong name assembly key file. |
Returns
Type | Description |
---|---|
Assembly |
Type Parameters
Name | Description |
---|---|
THeader | The message header type. |
GenerateSource<THeader>(TemplateLibrary, string)
Generates the source code string.
Declaration
public string GenerateSource<THeader>(TemplateLibrary lib, string namespaceName) where THeader : unmanaged, IMessageHeader
Parameters
Type | Name | Description |
---|---|---|
TemplateLibrary | lib | The template library. |
string | namespaceName | The namespace name. |
Returns
Type | Description |
---|---|
string | The generated source code. |
Type Parameters
Name | Description |
---|---|
THeader | The message header type. |
GenerateSource<THeader>(TemplateLibrary, string, string, bool, bool)
Generates the source code file.
Declaration
public string GenerateSource<THeader>(TemplateLibrary lib, string namespaceName, string fileName, bool generateAssemblyAttributes = false, bool generateSbeSchemaAttributes = true) where THeader : unmanaged, IMessageHeader
Parameters
Type | Name | Description |
---|---|---|
TemplateLibrary | lib | The template library. |
string | namespaceName | The namespace name. |
string | fileName | The output file name. |
bool | generateAssemblyAttributes | If |
bool | generateSbeSchemaAttributes | If |
Returns
Type | Description |
---|---|
string | The generated source code. |
Type Parameters
Name | Description |
---|---|
THeader | The message header type. |