AdapterSwitches.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 / Data / System / Data / Common / AdapterSwitches.cs / 1 / AdapterSwitches.cs

                            //------------------------------------------------------------------------------ 
// 
//      Copyright (c) Microsoft Corporation.  All rights reserved.
// 
// [....] 
// [....]
//----------------------------------------------------------------------------- 
 
#if DEBUG
 
using System.Diagnostics;

namespace System.Data.Common {
 
    internal static class AdapterSwitches {
 
        static private TraceSwitch _dataSchema; 

        static internal TraceSwitch DataSchema { 
            get {
                TraceSwitch dataSchema = _dataSchema;
                if (null == dataSchema) {
                    _dataSchema = dataSchema = new TraceSwitch("Data.Schema", "Enable tracing for schema actions."); 
                }
                return dataSchema; 
            } 
        }
    } 
}
#endif

// 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