System.CodeDom.Compiler.CodeGeneratorOptions Class

Assembly: System.dll
Namespace: System.CodeDom.Compiler
Summary
Represents options used by code generators.
C# Syntax:
public class CodeGeneratorOptions
See also:
System.CodeDom.Compiler Namespace

System.CodeDom.Compiler.CodeGeneratorOptions Member List:

Public Constructors
ctor #1 Default constructor. This constructor is called by derived class constructors to initialize state in this type.
Initializes a new instance of the CodeGeneratorOptions class.
Public Properties
BlankLinesBetweenMembers Read-write

Gets or sets a value indicating whether to insert blank lines between members.
BracingStyle Read-write

Gets or sets the style to use for bracing.
ElseOnClosing Read-write

Gets or sets a value indicating whether to append an else, catch, or finally block, including brackets, at the closing line of each previous if or try block.
IndentString Read-write

Gets or sets the string to use for indentations.
Item Read-write

Gets or sets the object at the specified index.
Public Methods
Equals
(inherited from System.Object)
See base class member description: System.Object.Equals

Derived from System.Object, the primary base class for all objects.
GetHashCode
(inherited from System.Object)
See base class member description: System.Object.GetHashCode

Derived from System.Object, the primary base class for all objects.
GetType
(inherited from System.Object)
See base class member description: System.Object.GetType

Derived from System.Object, the primary base class for all objects.
ToString
(inherited from System.Object)
See base class member description: System.Object.ToString

Derived from System.Object, the primary base class for all objects.
Protected Methods
Finalize
(inherited from System.Object)
See base class member description: System.Object.Finalize

Derived from System.Object, the primary base class for all objects.
MemberwiseClone
(inherited from System.Object)
See base class member description: System.Object.MemberwiseClone

Derived from System.Object, the primary base class for all objects.

Hierarchy:


System.CodeDom.Compiler.CodeGeneratorOptions Member Details

ctor #1
Summary
Initializes a new instance of the CodeGeneratorOptions class.

Default constructor. This constructor is called by derived class constructors to initialize state in this type.
C# Syntax:
public CodeGeneratorOptions();

Return to top


Property: BlankLinesBetweenMembers (read-write)
Summary
Gets or sets a value indicating whether to insert blank lines between members.
C# Syntax:
public bool BlankLinesBetweenMembers {get; set;}

Return to top


Property: BracingStyle (read-write)
Summary
Gets or sets the style to use for bracing.
C# Syntax:
public string BracingStyle {get; set;}
Remarks
The default value of this property is Block, which indicates that code should be generated so that braces start on the same line as the statement or declaration that they are associated with. A property value of C indicates that braces start on the line following the statement or declaration that they are associated with.

Return to top


Property: ElseOnClosing (read-write)
Summary
Gets or sets a value indicating whether to append an else, catch, or finally block, including brackets, at the closing line of each previous if or try block.
C# Syntax:
public bool ElseOnClosing {get; set;}

Return to top


Property: IndentString (read-write)
Summary
Gets or sets the string to use for indentations.
C# Syntax:
public string IndentString {get; set;}
Remarks
The default value of this property is "/----/" (four spaces).

Return to top


Property: Item (read-write)
Summary
Gets or sets the object at the specified index.
C# Syntax:
public object this[string index] {get; set;}
Parameters:

index

The property to access.

Return to top


Method: Equals(
   object obj
)
Inherited
See base class member description: System.Object.Equals
C# Syntax:
public virtual bool Equals(
   object obj
);

For more information on members inherited from System.Object click on the link above.

Return to top


Method: Finalize()
Inherited
See base class member description: System.Object.Finalize
C# Syntax:
~CodeGeneratorOptions();

For more information on members inherited from System.Object click on the link above.

Return to top


Method: GetHashCode()
Inherited
See base class member description: System.Object.GetHashCode
C# Syntax:
public virtual int GetHashCode();

For more information on members inherited from System.Object click on the link above.

Return to top


Method: GetType()
Inherited
See base class member description: System.Object.GetType
C# Syntax:
public Type GetType();

For more information on members inherited from System.Object click on the link above.

Return to top


Method: MemberwiseClone()
Inherited
See base class member description: System.Object.MemberwiseClone
C# Syntax:
protected object MemberwiseClone();

For more information on members inherited from System.Object click on the link above.

Return to top


Method: ToString()
Inherited
See base class member description: System.Object.ToString
C# Syntax:
public virtual string ToString();

For more information on members inherited from System.Object click on the link above.

Return to top


Top of page

Copyright (c) 2002 Microsoft Corporation. All rights reserved.