Class CodeGenUtil
A singleton class containing data used by codegen
Inheritance
System.Object
CodeGenUtil
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Avro
Assembly: Avro.dll
Syntax
public sealed class CodeGenUtil
Fields
| Improve this Doc View SourceObject
Declaration
public const string Object = "System.Object"
Field Value
Type | Description |
---|---|
System.String |
Properties
| Improve this Doc View SourceFileComment
Declaration
public CodeCommentStatement FileComment { get; }
Property Value
Type | Description |
---|---|
System.CodeDom.CodeCommentStatement |
Instance
Declaration
public static CodeGenUtil Instance { get; }
Property Value
Type | Description |
---|---|
CodeGenUtil |
NamespaceImports
Declaration
public CodeNamespaceImport[] NamespaceImports { get; }
Property Value
Type | Description |
---|---|
System.CodeDom.CodeNamespaceImport[] |
ReservedKeywords
Declaration
public HashSet<string> ReservedKeywords { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.HashSet<System.String> |
Methods
| Improve this Doc View SourceMangle(String)
Append @ to all reserved keywords that appear on the given name
Declaration
public string Mangle(string name)
Parameters
Type | Name | Description |
---|---|---|
System.String | name |
Returns
Type | Description |
---|---|
System.String |
UnMangle(String)
Remove all the @
Declaration
public string UnMangle(string name)
Parameters
Type | Name | Description |
---|---|---|
System.String | name |
Returns
Type | Description |
---|---|
System.String |