CodeGeneratorOptions.cs source code in C# .NET

Source code for the .NET framework in C#

                        

Code:

/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / CompMod / System / CodeDOM / Compiler / CodeGeneratorOptions.cs / 1305376 / CodeGeneratorOptions.cs

                            //------------------------------------------------------------------------------ 
// 
//
// [....]
//     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; 
            }
        } 
    } 
}

// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
                        

Link Menu

Network programming in C#, Network Programming in VB.NET, Network Programming in .NET
This book is available now!
Buy at Amazon US or
Buy at Amazon UK