Avro C#
Public Member Functions | Public Attributes | Properties | List of all members
Avro.CodeGenUtil Class Reference

A singleton class containing data used by codegen More...

Public Member Functions

string Mangle (string name)
 Append @ to all reserved keywords that appear on the given name More...
 
string UnMangle (string name)
 Remove all the @ More...
 

Public Attributes

const string Object = "System.Object"
 Fully-qualified name of a Object type. More...
 

Properties

static CodeGenUtil Instance [get]
 Singleton instance of this class. More...
 
CodeNamespaceImport [] NamespaceImports = new CodeGenUtil() [get]
 Namespaces to import in generated code. More...
 
CodeCommentStatement FileComment [get]
 Comment included at the top of each generated code file. More...
 
HashSet< string > ReservedKeywords [get]
 Reserved keywords in the C# language. More...
 

Detailed Description

A singleton class containing data used by codegen

Member Function Documentation

◆ Mangle()

string Avro.CodeGenUtil.Mangle ( string  name)
inline

Append @ to all reserved keywords that appear on the given name

Parameters
name
Returns

◆ UnMangle()

string Avro.CodeGenUtil.UnMangle ( string  name)
inline

Remove all the @

Parameters
name
Returns

Member Data Documentation

◆ Object

const string Avro.CodeGenUtil.Object = "System.Object"

Fully-qualified name of a Object type.

Property Documentation

◆ FileComment

CodeCommentStatement Avro.CodeGenUtil.FileComment
get

Comment included at the top of each generated code file.

◆ Instance

CodeGenUtil Avro.CodeGenUtil.Instance
staticget

Singleton instance of this class.

◆ NamespaceImports

CodeNamespaceImport [] Avro.CodeGenUtil.NamespaceImports = new CodeGenUtil()
get

Namespaces to import in generated code.

◆ ReservedKeywords

HashSet<string> Avro.CodeGenUtil.ReservedKeywords
get

Reserved keywords in the C# language.


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