mscorlib(4.0.0.0) API with additions
CodeGeneratorOptions.cs
1 using System.Collections;
5 
7 {
9  [PermissionSet(SecurityAction.LinkDemand, Name = "FullTrust")]
10  [PermissionSet(SecurityAction.InheritanceDemand, Name = "FullTrust")]
11  public class CodeGeneratorOptions
12  {
13  private IDictionary options = new ListDictionary();
14 
18  public object this[string index]
19  {
20  get
21  {
22  return options[index];
23  }
24  set
25  {
26  options[index] = value;
27  }
28  }
29 
32  public string IndentString
33  {
34  get
35  {
36  object obj = options["IndentString"];
37  if (obj != null)
38  {
39  return (string)obj;
40  }
41  return " ";
42  }
43  set
44  {
45  options["IndentString"] = value;
46  }
47  }
48 
51  public string BracingStyle
52  {
53  get
54  {
55  object obj = options["BracingStyle"];
56  if (obj != null)
57  {
58  return (string)obj;
59  }
60  return "Block";
61  }
62  set
63  {
64  options["BracingStyle"] = value;
65  }
66  }
67 
71  public bool ElseOnClosing
72  {
73  get
74  {
75  object obj = options["ElseOnClosing"];
76  if (obj != null)
77  {
78  return (bool)obj;
79  }
80  return false;
81  }
82  set
83  {
84  options["ElseOnClosing"] = value;
85  }
86  }
87 
91  public bool BlankLinesBetweenMembers
92  {
93  get
94  {
95  object obj = options["BlankLinesBetweenMembers"];
96  if (obj != null)
97  {
98  return (bool)obj;
99  }
100  return true;
101  }
102  set
103  {
104  options["BlankLinesBetweenMembers"] = value;
105  }
106  }
107 
111  [ComVisible(false)]
112  public bool VerbatimOrder
113  {
114  get
115  {
116  object obj = options["VerbatimOrder"];
117  if (obj != null)
118  {
119  return (bool)obj;
120  }
121  return false;
122  }
123  set
124  {
125  options["VerbatimOrder"] = value;
126  }
127  }
128  }
129 }
Definition: __Canon.cs:3
string IndentString
Gets or sets the string to use for indentations.
SecurityAction
Specifies the security actions that can be performed using declarative security.
bool BlankLinesBetweenMembers
Gets or sets a value indicating whether to insert blank lines between members.
Represents a set of options used by a code generator.
bool ElseOnClosing
Gets or sets a value indicating whether to append an else, catch, or finally block,...
Represents a nongeneric collection of key/value pairs.
Definition: IDictionary.cs:8
string BracingStyle
Gets or sets the style to use for bracing.
bool VerbatimOrder
Gets or sets a value indicating whether to generate members in the order in which they occur in membe...
Implements IDictionary using a singly linked list. Recommended for collections that typically include...