Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / ndp / clr / src / BCL / System / mda.cs / 1 / mda.cs
// ==++== // // Copyright (c) Microsoft Corporation. All rights reserved. // // ==--== using System.Runtime.CompilerServices; namespace System { #if MDA_SUPPORTED internal static class Mda { private enum MdaState { Unknown = 0, Enabled = 1, Disabled = 2 } private static MdaState _streamWriterMDAState = MdaState.Unknown; internal static bool StreamWriterBufferMDAEnabled { get { if (_streamWriterMDAState == 0) { if (IsStreamWriterBufferedDataLostEnabled()) _streamWriterMDAState = MdaState.Enabled; else _streamWriterMDAState = MdaState.Disabled; } return _streamWriterMDAState == MdaState.Enabled; } } [MethodImplAttribute(MethodImplOptions.InternalCall)] internal static extern void MemberInfoCacheCreation(); [MethodImplAttribute(MethodImplOptions.InternalCall)] internal static extern void DateTimeInvalidLocalFormat(); [MethodImplAttribute(MethodImplOptions.InternalCall)] internal static extern void StreamWriterBufferedDataLost(String text); [MethodImplAttribute(MethodImplOptions.InternalCall)] internal static extern bool IsStreamWriterBufferedDataLostEnabled(); [MethodImplAttribute(MethodImplOptions.InternalCall)] internal static extern bool IsInvalidGCHandleCookieProbeEnabled(); [MethodImplAttribute(MethodImplOptions.InternalCall)] internal static extern void FireInvalidGCHandleCookieProbe(IntPtr cookie); } #endif } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // ==++== // // Copyright (c) Microsoft Corporation. All rights reserved. // // ==--== using System.Runtime.CompilerServices; namespace System { #if MDA_SUPPORTED internal static class Mda { private enum MdaState { Unknown = 0, Enabled = 1, Disabled = 2 } private static MdaState _streamWriterMDAState = MdaState.Unknown; internal static bool StreamWriterBufferMDAEnabled { get { if (_streamWriterMDAState == 0) { if (IsStreamWriterBufferedDataLostEnabled()) _streamWriterMDAState = MdaState.Enabled; else _streamWriterMDAState = MdaState.Disabled; } return _streamWriterMDAState == MdaState.Enabled; } } [MethodImplAttribute(MethodImplOptions.InternalCall)] internal static extern void MemberInfoCacheCreation(); [MethodImplAttribute(MethodImplOptions.InternalCall)] internal static extern void DateTimeInvalidLocalFormat(); [MethodImplAttribute(MethodImplOptions.InternalCall)] internal static extern void StreamWriterBufferedDataLost(String text); [MethodImplAttribute(MethodImplOptions.InternalCall)] internal static extern bool IsStreamWriterBufferedDataLostEnabled(); [MethodImplAttribute(MethodImplOptions.InternalCall)] internal static extern bool IsInvalidGCHandleCookieProbeEnabled(); [MethodImplAttribute(MethodImplOptions.InternalCall)] internal static extern void FireInvalidGCHandleCookieProbe(IntPtr cookie); } #endif } // File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- DESCryptoServiceProvider.cs
- CompilationUtil.cs
- ValidationRule.cs
- CodeDirectiveCollection.cs
- RadioButtonList.cs
- WebZone.cs
- AttachedPropertyMethodSelector.cs
- RowBinding.cs
- SendMessageChannelCache.cs
- prompt.cs
- Dispatcher.cs
- GenericTextProperties.cs
- Pointer.cs
- UnionCqlBlock.cs
- TransactionScopeDesigner.cs
- HostDesigntimeLicenseContext.cs
- DataListItemEventArgs.cs
- OutputCacheProfile.cs
- Brush.cs
- EnumValAlphaComparer.cs
- GenericsInstances.cs
- DataGridTextColumn.cs
- PersonalizationStateInfo.cs
- GlyphingCache.cs
- TraceSwitch.cs
- DebugTraceHelper.cs
- TreeNodeStyleCollection.cs
- SRDisplayNameAttribute.cs
- DataGridViewCellCancelEventArgs.cs
- XmlToDatasetMap.cs
- IdentifierService.cs
- WinFormsComponentEditor.cs
- AttributeUsageAttribute.cs
- PriorityItem.cs
- DataBindingList.cs
- OdbcEnvironmentHandle.cs
- ApplicationServiceHelper.cs
- Component.cs
- ConfigXmlAttribute.cs
- TextViewSelectionProcessor.cs
- ScrollProviderWrapper.cs
- WindowHideOrCloseTracker.cs
- util.cs
- DocumentPage.cs
- Oid.cs
- QuadraticBezierSegment.cs
- HttpListenerRequest.cs
- SafeSystemMetrics.cs
- DataServiceException.cs
- SchemaImporter.cs
- GacUtil.cs
- InvalidBodyAccessException.cs
- QilFunction.cs
- XmlDocumentSerializer.cs
- DuplicateWaitObjectException.cs
- Thread.cs
- LicFileLicenseProvider.cs
- TransactedBatchContext.cs
- Literal.cs
- ListControl.cs
- DefaultPrintController.cs
- SoapSchemaMember.cs
- EntitySetDataBindingList.cs
- CommonProperties.cs
- Transform.cs
- ValidationService.cs
- ElementFactory.cs
- ListControlDataBindingHandler.cs
- DeploymentExceptionMapper.cs
- UpdateCommandGenerator.cs
- Normalization.cs
- DropSourceBehavior.cs
- SecurityElement.cs
- StorageEntityTypeMapping.cs
- HttpCacheParams.cs
- DefaultAuthorizationContext.cs
- JoinSymbol.cs
- RichTextBoxConstants.cs
- XmlNamespaceMappingCollection.cs
- LogFlushAsyncResult.cs
- HttpCapabilitiesBase.cs
- ClosableStream.cs
- DaylightTime.cs
- XmlAnyAttributeAttribute.cs
- DataColumnChangeEvent.cs
- AddInStore.cs
- _SSPIWrapper.cs
- GenericTextProperties.cs
- XhtmlBasicPhoneCallAdapter.cs
- ColorTranslator.cs
- httpstaticobjectscollection.cs
- ScaleTransform.cs
- ProtectedProviderSettings.cs
- DefaultBinder.cs
- TableFieldsEditor.cs
- ParagraphResult.cs
- PowerEase.cs
- TextCompositionEventArgs.cs
- NativeMethods.cs
- InternalCompensate.cs