CompModSwitches.cs source code in C# .NET

Source code for the .NET framework in C#

                        

Code:

/ DotNET / DotNET / 8.0 / untmp / whidbey / REDBITS / ndp / fx / src / Designer / CompMod / System / ComponentModel / CompModSwitches.cs / 1 / CompModSwitches.cs

                            //------------------------------------------------------------------------------
// 
//     Copyright (c) Microsoft Corporation.  All rights reserved.
//  
//-----------------------------------------------------------------------------
 
namespace System.ComponentModel { 
    using System.Diagnostics;
 
    /// 
    internal static class CompModSwitches {
        private static BooleanSwitch commonDesignerServices;
        private static TraceSwitch userControlDesigner; 
        private static TraceSwitch dragDrop;
        private static TraceSwitch msaa; 
 
        public static BooleanSwitch CommonDesignerServices {
            get { 
                if (commonDesignerServices == null) {
                    commonDesignerServices = new BooleanSwitch("CommonDesignerServices", "Assert if any common designer service is not found.");
                }
                return commonDesignerServices; 
            }
        } 
 
        public static TraceSwitch DragDrop {
            get { 
                if (dragDrop == null) {
                    dragDrop = new TraceSwitch("DragDrop", "Debug OLEDragDrop support in Controls");
                }
                return dragDrop; 
            }
        } 
 
        public static TraceSwitch MSAA {
            get { 
                if (msaa == null) {
                    msaa = new TraceSwitch("MSAA", "Debug Microsoft Active Accessibility");
                }
                return msaa; 
            }
        } 
 
        public static TraceSwitch UserControlDesigner {
            get { 
                if (userControlDesigner == null) {
                    userControlDesigner = new TraceSwitch("UserControlDesigner", "User Control Designer : Trace service calls.");
                }
                return userControlDesigner; 
            }
        } 
 
    }
} 

// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
// Copyright (c) Microsoft Corporation. All rights reserved.
                        

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