1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108
|
//------------------------------------------------------------------------------
// <copyright file="CodeGeneratorOptions.cs" company="Microsoft">
//
// <OWNER>[....]</OWNER>
// Copyright (c) Microsoft Corporation. All rights reserved.
// </copyright>
//------------------------------------------------------------------------------
namespace System.CodeDom.Compiler {
using System;
using System.CodeDom;
using System.Collections;
using System.Collections.Specialized;
using System.Security.Permissions;
/// <devdoc>
/// <para>
/// Represents options used in code generation
/// </para>
/// </devdoc>
[PermissionSet(SecurityAction.LinkDemand, Name="FullTrust")]
[PermissionSet(SecurityAction.InheritanceDemand, Name="FullTrust")]
public class CodeGeneratorOptions {
private IDictionary options = new ListDictionary();
/// <devdoc>
/// <para>[To be supplied.]</para>
/// </devdoc>
public CodeGeneratorOptions() {
}
/// <devdoc>
/// <para>[To be supplied.]</para>
/// </devdoc>
public object this[string index] {
get {
return options[index];
}
set {
options[index] = value;
}
}
/// <devdoc>
/// <para>[To be supplied.]</para>
/// </devdoc>
public string IndentString {
get {
object o = options["IndentString"];
return ((o == null) ? " " : (string)o);
}
set {
options["IndentString"] = value;
}
}
/// <devdoc>
/// <para>[To be supplied.]</para>
/// </devdoc>
public string BracingStyle {
get {
object o = options["BracingStyle"];
return ((o == null) ? "Block" : (string)o);
}
set {
options["BracingStyle"] = value;
}
}
/// <devdoc>
/// <para>[To be supplied.]</para>
/// </devdoc>
public bool ElseOnClosing {
get {
object o = options["ElseOnClosing"];
return ((o == null) ? false : (bool)o);
}
set {
options["ElseOnClosing"] = value;
}
}
/// <devdoc>
/// <para>[To be supplied.]</para>
/// </devdoc>
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;
}
}
}
}
|