Show / Hide Table of Contents

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 Source

Object

Declaration
public const string Object = "System.Object"
Field Value
Type Description
System.String

Properties

| Improve this Doc View Source

FileComment

Declaration
public CodeCommentStatement FileComment { get; }
Property Value
Type Description
System.CodeDom.CodeCommentStatement
| Improve this Doc View Source

Instance

Declaration
public static CodeGenUtil Instance { get; }
Property Value
Type Description
CodeGenUtil
| Improve this Doc View Source

NamespaceImports

Declaration
public CodeNamespaceImport[] NamespaceImports { get; }
Property Value
Type Description
System.CodeDom.CodeNamespaceImport[]
| Improve this Doc View Source

ReservedKeywords

Declaration
public HashSet<string> ReservedKeywords { get; }
Property Value
Type Description
System.Collections.Generic.HashSet<System.String>

Methods

| Improve this Doc View Source

Mangle(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
| Improve this Doc View Source

UnMangle(String)

Remove all the @

Declaration
public string UnMangle(string name)
Parameters
Type Name Description
System.String name
Returns
Type Description
System.String
  • Improve this Doc
  • View Source
Back to top Copyright © 2012 The Apache Software Foundation.