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
- GeneralTransform.cs
- GridErrorDlg.cs
- PingReply.cs
- WebControlToolBoxItem.cs
- TextEditor.cs
- HttpRawResponse.cs
- And.cs
- DesignerVerb.cs
- KnownColorTable.cs
- FontStretchConverter.cs
- HttpModuleActionCollection.cs
- Substitution.cs
- FrameworkContextData.cs
- ToolStripScrollButton.cs
- HtmlWindowCollection.cs
- Version.cs
- ListDataHelper.cs
- DataTableTypeConverter.cs
- XmlLanguage.cs
- IssuerInformation.cs
- CapabilitiesUse.cs
- LinqDataSourceSelectEventArgs.cs
- UIElement3DAutomationPeer.cs
- basevalidator.cs
- OutputCacheSection.cs
- InvalidPropValue.cs
- DragEvent.cs
- UnsafeNativeMethods.cs
- COSERVERINFO.cs
- ZipIOLocalFileHeader.cs
- BuildProviderCollection.cs
- BindingNavigatorDesigner.cs
- ProbeMatchesCD1.cs
- _CacheStreams.cs
- CollectionView.cs
- TreeViewItemAutomationPeer.cs
- ByteStreamMessageUtility.cs
- Stylesheet.cs
- DetailsViewRowCollection.cs
- TextTreeInsertUndoUnit.cs
- ElapsedEventArgs.cs
- Margins.cs
- SqlDelegatedTransaction.cs
- wgx_sdk_version.cs
- PriorityQueue.cs
- PartBasedPackageProperties.cs
- SerialPinChanges.cs
- DependencyPropertyValueSerializer.cs
- Matrix3DStack.cs
- PolicyException.cs
- EventBuilder.cs
- TextAction.cs
- HttpStreamXmlDictionaryReader.cs
- Latin1Encoding.cs
- MatchSingleFxEngineOpcode.cs
- PermissionSet.cs
- DocumentSchemaValidator.cs
- ManualWorkflowSchedulerService.cs
- OleDbConnectionFactory.cs
- ItemChangedEventArgs.cs
- InitializingNewItemEventArgs.cs
- DesignerHelpers.cs
- SetterBaseCollection.cs
- XamlPoint3DCollectionSerializer.cs
- ContentHostHelper.cs
- AppSettingsExpressionBuilder.cs
- DataGridViewLinkColumn.cs
- DataRowCollection.cs
- IdentityNotMappedException.cs
- SettingsBase.cs
- Knowncolors.cs
- DataGridViewSelectedRowCollection.cs
- DetailsViewDeletedEventArgs.cs
- ItemsPresenter.cs
- RecoverInstanceLocksCommand.cs
- PingOptions.cs
- LocalizableResourceBuilder.cs
- HandlerFactoryWrapper.cs
- BitmapEffectGroup.cs
- MenuItemAutomationPeer.cs
- BrowserDefinitionCollection.cs
- ConnectionsZone.cs
- WebBrowserContainer.cs
- InvalidEnumArgumentException.cs
- ColumnTypeConverter.cs
- Control.cs
- ModelItemCollection.cs
- COM2IPerPropertyBrowsingHandler.cs
- DbConnectionPoolOptions.cs
- Timer.cs
- EventListener.cs
- SerializationSectionGroup.cs
- MarkedHighlightComponent.cs
- Nullable.cs
- UIPropertyMetadata.cs
- CurrencyWrapper.cs
- MtomMessageEncodingElement.cs
- SerializableAttribute.cs
- SqlServer2KCompatibilityCheck.cs
- _BasicClient.cs