//------------------------------------------------------------------------------
//
//
// [....]
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//------------------------------------------------------------------------------
namespace System.CodeDom.Compiler {
using System;
using System.CodeDom;
using System.Collections;
using System.Collections.Specialized;
using System.Security.Permissions;
///
///
/// Represents options used in code generation
///
///
[PermissionSet(SecurityAction.LinkDemand, Name="FullTrust")]
[PermissionSet(SecurityAction.InheritanceDemand, Name="FullTrust")]
public class CodeGeneratorOptions {
private IDictionary options = new ListDictionary();
///
/// [To be supplied.]
///
public CodeGeneratorOptions() {
}
///
/// [To be supplied.]
///
public object this[string index] {
get {
return options[index];
}
set {
options[index] = value;
}
}
///
/// [To be supplied.]
///
public string IndentString {
get {
object o = options["IndentString"];
return ((o == null) ? " " : (string)o);
}
set {
options["IndentString"] = value;
}
}
///
/// [To be supplied.]
///
public string BracingStyle {
get {
object o = options["BracingStyle"];
return ((o == null) ? "Block" : (string)o);
}
set {
options["BracingStyle"] = value;
}
}
///
/// [To be supplied.]
///
public bool ElseOnClosing {
get {
object o = options["ElseOnClosing"];
return ((o == null) ? false : (bool)o);
}
set {
options["ElseOnClosing"] = value;
}
}
///
/// [To be supplied.]
///
public bool BlankLinesBetweenMembers {
get {
object o = options["BlankLinesBetweenMembers"];
return ((o == null) ? true : (bool)o);
}
set {
options["BlankLinesBetweenMembers"] = value;
}
}
[System.Runtime.InteropServices.ComVisible(false)]
public bool VerbatimOrder {
get {
object o = options["VerbatimOrder"];
return ((o == null) ? false : (bool)o);
}
set {
options["VerbatimOrder"] = value;
}
}
}
}