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
- _AcceptOverlappedAsyncResult.cs
- ZipFileInfoCollection.cs
- Registry.cs
- ConnectionPoint.cs
- ResourcesBuildProvider.cs
- ProviderConnectionPointCollection.cs
- ApplicationServicesHostFactory.cs
- EventLogPermissionAttribute.cs
- DLinqAssociationProvider.cs
- WindowsComboBox.cs
- WCFBuildProvider.cs
- RegularExpressionValidator.cs
- CodeNamespaceCollection.cs
- XmlSchemaResource.cs
- XmlSchemaSimpleContentExtension.cs
- InputMethodStateChangeEventArgs.cs
- CodeDOMProvider.cs
- TemplateXamlParser.cs
- ObjectStateEntryDbUpdatableDataRecord.cs
- ComboBoxAutomationPeer.cs
- ScriptRegistrationManager.cs
- ColumnPropertiesGroup.cs
- FileLoadException.cs
- GridViewEditEventArgs.cs
- EdmRelationshipNavigationPropertyAttribute.cs
- InlineUIContainer.cs
- XPathNodePointer.cs
- WorkingDirectoryEditor.cs
- Base64Stream.cs
- EventLog.cs
- VisualBasicSettingsConverter.cs
- ChangeToolStripParentVerb.cs
- TerminatorSinks.cs
- PeerNameRecordCollection.cs
- Block.cs
- TextCharacters.cs
- SourceCollection.cs
- SoapParser.cs
- AttributeProviderAttribute.cs
- TableCellCollection.cs
- CryptoKeySecurity.cs
- EmbeddedMailObjectCollectionEditor.cs
- QueuePathEditor.cs
- GridProviderWrapper.cs
- FacetValues.cs
- UserControlCodeDomTreeGenerator.cs
- SyndicationElementExtension.cs
- MarginCollapsingState.cs
- SmiContextFactory.cs
- SimpleBitVector32.cs
- FileLogRecordStream.cs
- ClientConvert.cs
- DesignerAutoFormat.cs
- DoubleKeyFrameCollection.cs
- MessageEncodingBindingElementImporter.cs
- LayoutSettings.cs
- CommandLibraryHelper.cs
- coordinatorscratchpad.cs
- HMACSHA512.cs
- ConfigXmlText.cs
- AudioFileOut.cs
- XmlChildEnumerator.cs
- CryptoStream.cs
- MessageRpc.cs
- DirectionalLight.cs
- ObjectContextServiceProvider.cs
- AliasExpr.cs
- CodeSnippetTypeMember.cs
- ReadOnlyTernaryTree.cs
- DynamicResourceExtension.cs
- Stack.cs
- GeometryCombineModeValidation.cs
- SystemIPInterfaceStatistics.cs
- Bidi.cs
- SocketException.cs
- SiblingIterators.cs
- FontConverter.cs
- TileModeValidation.cs
- Rotation3D.cs
- DnsEndPoint.cs
- DataTransferEventArgs.cs
- EventHandlers.cs
- XamlRtfConverter.cs
- MouseWheelEventArgs.cs
- XmlStringTable.cs
- MetaTableHelper.cs
- Bold.cs
- BackgroundWorker.cs
- DesignerLabelAdapter.cs
- ListViewEditEventArgs.cs
- SessionEndingCancelEventArgs.cs
- RenderCapability.cs
- ObjectViewListener.cs
- TreeNodeBinding.cs
- ColumnHeader.cs
- Schema.cs
- CollectionTypeElement.cs
- ChangeNode.cs
- Triplet.cs
- SingleKeyFrameCollection.cs