Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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
- NavigateEvent.cs
- SoapAttributeOverrides.cs
- XamlSerializationHelper.cs
- PathTooLongException.cs
- HtmlWindowCollection.cs
- DataControlFieldCell.cs
- Multiply.cs
- isolationinterop.cs
- AdPostCacheSubstitution.cs
- AutoGeneratedFieldProperties.cs
- DataGridRow.cs
- FileClassifier.cs
- SecondaryViewProvider.cs
- Control.cs
- TrackingStringDictionary.cs
- OleServicesContext.cs
- PointUtil.cs
- MetafileHeaderWmf.cs
- ActivityCodeDomReferenceService.cs
- StackBuilderSink.cs
- StoreItemCollection.cs
- LocationUpdates.cs
- ValueConversionAttribute.cs
- ServicesUtilities.cs
- HtmlShim.cs
- SystemWebSectionGroup.cs
- GeometryConverter.cs
- HelpFileFileNameEditor.cs
- LogRestartAreaEnumerator.cs
- UnsafeNativeMethods.cs
- XmlBoundElement.cs
- CollectionConverter.cs
- WinInetCache.cs
- AppDomainShutdownMonitor.cs
- ToolboxComponentsCreatingEventArgs.cs
- ToolStripDropDownClosingEventArgs.cs
- ToolTip.cs
- MarginsConverter.cs
- DataGridViewControlCollection.cs
- SafeCryptoHandles.cs
- BamlResourceContent.cs
- Misc.cs
- CustomValidator.cs
- SystemTcpConnection.cs
- PreProcessor.cs
- QueryStringParameter.cs
- TransformValueSerializer.cs
- FunctionParameter.cs
- OracleInfoMessageEventArgs.cs
- ProxySimple.cs
- SessionState.cs
- XmlDataSourceNodeDescriptor.cs
- EditorPartCollection.cs
- X500Name.cs
- StyleBamlTreeBuilder.cs
- DrawingState.cs
- GridPatternIdentifiers.cs
- PhysicalAddress.cs
- SmiEventSink_Default.cs
- TemplateBaseAction.cs
- OciEnlistContext.cs
- ComboBoxDesigner.cs
- ProcessModelInfo.cs
- HotCommands.cs
- TableDetailsRow.cs
- CurrentChangedEventManager.cs
- XmlDocumentSurrogate.cs
- COM2ICategorizePropertiesHandler.cs
- PersonalizationStateQuery.cs
- ExtenderControl.cs
- ArgumentOutOfRangeException.cs
- Helpers.cs
- ToolStripTextBox.cs
- ExpandCollapsePattern.cs
- CodeGotoStatement.cs
- DataGrid.cs
- DataGridViewCellErrorTextNeededEventArgs.cs
- SqlCommand.cs
- FilePresentation.cs
- MSAAEventDispatcher.cs
- IndentedTextWriter.cs
- HtmlAnchor.cs
- QueueProcessor.cs
- filewebresponse.cs
- CodeIdentifier.cs
- SystemNetworkInterface.cs
- AnimatedTypeHelpers.cs
- Point.cs
- TextElementCollectionHelper.cs
- TypeSchema.cs
- DbConnectionInternal.cs
- ConnectionDemuxer.cs
- DocumentSequenceHighlightLayer.cs
- WorkflowTransactionService.cs
- GenerateScriptTypeAttribute.cs
- TypeConverter.cs
- AdornerDecorator.cs
- XmlNamespaceManager.cs
- ControlValuePropertyAttribute.cs
- HttpDebugHandler.cs