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
- EntityTransaction.cs
- ResourcePropertyMemberCodeDomSerializer.cs
- TimeoutHelper.cs
- HwndSource.cs
- Resources.Designer.cs
- Pen.cs
- FixedPageStructure.cs
- EncoderReplacementFallback.cs
- DataControlLinkButton.cs
- QueryContinueDragEventArgs.cs
- ServiceHttpHandlerFactory.cs
- Rect3DConverter.cs
- HideDisabledControlAdapter.cs
- DataGrid.cs
- ValidationSummary.cs
- ScrollBar.cs
- ZipQueryOperator.cs
- UriSectionData.cs
- VoiceChangeEventArgs.cs
- NamespaceExpr.cs
- Thread.cs
- ImageBrush.cs
- ImageAutomationPeer.cs
- AddDataControlFieldDialog.cs
- CharEnumerator.cs
- SerializationInfo.cs
- storepermission.cs
- FileRegion.cs
- DynamicDocumentPaginator.cs
- PrintDialog.cs
- BaseCAMarshaler.cs
- SharedStatics.cs
- ManualResetEvent.cs
- CommentEmitter.cs
- ContentPresenter.cs
- RelationalExpressions.cs
- HierarchicalDataSourceControl.cs
- AuthenticationManager.cs
- SecurityUtils.cs
- LabelAutomationPeer.cs
- ToolBarOverflowPanel.cs
- SelectionItemPattern.cs
- DaylightTime.cs
- Size.cs
- TextTreeInsertUndoUnit.cs
- DataObjectEventArgs.cs
- ScrollBarRenderer.cs
- ECDiffieHellman.cs
- WindowsSolidBrush.cs
- AppModelKnownContentFactory.cs
- HtmlButton.cs
- WebScriptMetadataMessage.cs
- Rect.cs
- MergeFailedEvent.cs
- OutKeywords.cs
- ParentUndoUnit.cs
- DiagnosticTrace.cs
- Task.cs
- DbDataSourceEnumerator.cs
- ListSortDescriptionCollection.cs
- StrongTypingException.cs
- RolePrincipal.cs
- HtmlButton.cs
- FontStretches.cs
- IgnorePropertiesAttribute.cs
- XPathArrayIterator.cs
- IfAction.cs
- SerialPort.cs
- EndPoint.cs
- XamlToRtfParser.cs
- SqlNodeAnnotation.cs
- FrameworkElement.cs
- ConsumerConnectionPointCollection.cs
- OperandQuery.cs
- MachineKeySection.cs
- Directory.cs
- RuntimeArgumentHandle.cs
- KnownBoxes.cs
- HtmlTextBoxAdapter.cs
- Expander.cs
- EventLogEntry.cs
- IdentityNotMappedException.cs
- CodeCommentStatement.cs
- Form.cs
- XPathAncestorQuery.cs
- BindingMAnagerBase.cs
- URLEditor.cs
- PackageRelationshipSelector.cs
- DesignerActionPropertyItem.cs
- RelationshipConstraintValidator.cs
- DbConnectionClosed.cs
- OLEDB_Enum.cs
- AliasGenerator.cs
- DiscoveryClientOutputChannel.cs
- SynchronizationHandlesCodeDomSerializer.cs
- LockCookie.cs
- IPEndPoint.cs
- Merger.cs
- serverconfig.cs
- ThreadAbortException.cs