1 //------------------------------------------------------------------------------
2 // <copyright file="CodeGeneratorOptions.cs" company="Microsoft">
4 // <OWNER>Microsoft</OWNER>
5 // Copyright (c) Microsoft Corporation. All rights reserved.
7 //------------------------------------------------------------------------------
9 namespace System.CodeDom.Compiler {
12 using System.Collections;
13 using System.Collections.Specialized;
14 using System.Security.Permissions;
19 /// Represents options used in code generation
22 [PermissionSet(SecurityAction.LinkDemand, Name="FullTrust")]
23 [PermissionSet(SecurityAction.InheritanceDemand, Name="FullTrust")]
24 public class CodeGeneratorOptions {
25 private IDictionary options = new ListDictionary();
28 /// <para>[To be supplied.]</para>
30 public CodeGeneratorOptions() {
34 /// <para>[To be supplied.]</para>
36 public object this[string index] {
38 return options[index];
41 options[index] = value;
46 /// <para>[To be supplied.]</para>
48 public string IndentString {
50 object o = options["IndentString"];
51 return ((o == null) ? " " : (string)o);
54 options["IndentString"] = value;
59 /// <para>[To be supplied.]</para>
61 public string BracingStyle {
63 object o = options["BracingStyle"];
64 return ((o == null) ? "Block" : (string)o);
67 options["BracingStyle"] = value;
72 /// <para>[To be supplied.]</para>
74 public bool ElseOnClosing {
76 object o = options["ElseOnClosing"];
77 return ((o == null) ? false : (bool)o);
80 options["ElseOnClosing"] = value;
85 /// <para>[To be supplied.]</para>
87 public bool BlankLinesBetweenMembers {
89 object o = options["BlankLinesBetweenMembers"];
90 return ((o == null) ? true : (bool)o);
93 options["BlankLinesBetweenMembers"] = value;
97 [System.Runtime.InteropServices.ComVisible(false)]
98 public bool VerbatimOrder {
100 object o = options["VerbatimOrder"];
101 return ((o == null) ? false : (bool)o);
104 options["VerbatimOrder"] = value;