Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / Sys / System / IO / compression / CompressionTracing.cs / 1305376 / CompressionTracing.cs
namespace System.IO.Compression { using System.Diagnostics; internal enum CompressionTracingSwitchLevel { Off = 0, Informational = 1, Verbose = 2 } internal class CompressionTracingSwitch : Switch { internal static CompressionTracingSwitch tracingSwitch = new CompressionTracingSwitch("CompressionSwitch", "Compression Library Tracing Switch"); internal CompressionTracingSwitch(string displayName, string description) : base(displayName, description) { } public static bool Verbose { get { return tracingSwitch.SwitchSetting >= (int)CompressionTracingSwitchLevel.Verbose; } } public static bool Informational { get { return tracingSwitch.SwitchSetting >= (int)CompressionTracingSwitchLevel.Informational; } } #if ENABLE_TRACING public void SetSwitchSetting(CompressionTracingSwitchLevel level) { if (level < CompressionTracingSwitchLevel.Off || level > CompressionTracingSwitchLevel.Verbose) { throw new ArgumentOutOfRangeException("level"); } this.SwitchSetting = (int)level; } #endif } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- ObjectQueryProvider.cs
- DesignTimeDataBinding.cs
- AssemblyAssociatedContentFileAttribute.cs
- XmlQueryOutput.cs
- WebScriptMetadataMessageEncoderFactory.cs
- FormView.cs
- HashCodeCombiner.cs
- OracleCommandBuilder.cs
- DynamicDiscoveryDocument.cs
- SafeNativeMethods.cs
- SectionInformation.cs
- DeflateInput.cs
- EnvelopeVersion.cs
- ModelVisual3D.cs
- WebScriptClientGenerator.cs
- assertwrapper.cs
- Binding.cs
- PreservationFileReader.cs
- Matrix.cs
- SoundPlayerAction.cs
- HttpProcessUtility.cs
- UserPreferenceChangedEventArgs.cs
- GregorianCalendarHelper.cs
- PrimitiveSchema.cs
- SocketPermission.cs
- DataSourceSelectArguments.cs
- ValidatedControlConverter.cs
- LogReservationCollection.cs
- ConnectionsZone.cs
- CryptoConfig.cs
- SupportingTokenSecurityTokenResolver.cs
- QueryRewriter.cs
- WindowsGraphics2.cs
- ServerValidateEventArgs.cs
- TreeNodeCollectionEditor.cs
- OrderedDictionary.cs
- XmlMtomWriter.cs
- Decimal.cs
- MLangCodePageEncoding.cs
- XmlDataSourceView.cs
- TextServicesProperty.cs
- _KerberosClient.cs
- PageAsyncTask.cs
- DataGridViewBindingCompleteEventArgs.cs
- Util.cs
- InternalException.cs
- MultiBinding.cs
- FontUnit.cs
- NestPullup.cs
- ItemsControl.cs
- DataGrid.cs
- FontUnitConverter.cs
- EventProviderWriter.cs
- XmlMemberMapping.cs
- HitTestParameters3D.cs
- ContentFilePart.cs
- CrossAppDomainChannel.cs
- RequiredArgumentAttribute.cs
- PinnedBufferMemoryStream.cs
- ControlType.cs
- LoginName.cs
- InvalidContentTypeException.cs
- Command.cs
- ContainerVisual.cs
- BufferedOutputAsyncStream.cs
- sapiproxy.cs
- ObjectComplexPropertyMapping.cs
- ThreadPool.cs
- SHA512.cs
- _NetworkingPerfCounters.cs
- ISCIIEncoding.cs
- ActivationArguments.cs
- LayoutInformation.cs
- DataGridViewCellParsingEventArgs.cs
- ListBoxItemWrapperAutomationPeer.cs
- SessionEndingEventArgs.cs
- IpcServerChannel.cs
- ExpressionList.cs
- EntityModelSchemaGenerator.cs
- ReadingWritingEntityEventArgs.cs
- PlaceHolder.cs
- ExtendedTransformFactory.cs
- ZoneLinkButton.cs
- LinkedList.cs
- CodeComment.cs
- MemberNameValidator.cs
- SHA384Managed.cs
- WmlCalendarAdapter.cs
- ToolStripItemDesigner.cs
- AsymmetricKeyExchangeFormatter.cs
- MappingModelBuildProvider.cs
- PropertyGridCommands.cs
- WebPartCatalogCloseVerb.cs
- XmlCustomFormatter.cs
- CatalogZoneAutoFormat.cs
- GenericEnumConverter.cs
- TransactedBatchContext.cs
- SocketManager.cs
- DbConnectionPoolCounters.cs
- TextFormatterHost.cs