Code:
/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / 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 }
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- ServiceModelReg.cs
- UIAgentMonitor.cs
- XPathQilFactory.cs
- WebPartVerbsEventArgs.cs
- AssemblyHash.cs
- _FtpControlStream.cs
- ProviderException.cs
- Label.cs
- HasRunnableWorkflowEvent.cs
- TransformGroup.cs
- RolePrincipal.cs
- FormCollection.cs
- ViewEvent.cs
- Activity.cs
- AttributeCollection.cs
- MsmqInputSessionChannelListener.cs
- InteropAutomationProvider.cs
- HttpCookie.cs
- ValueTypeFixupInfo.cs
- COMException.cs
- TokenBasedSet.cs
- TextDecorations.cs
- DeflateEmulationStream.cs
- EntityViewGenerationConstants.cs
- CorrelationScope.cs
- SharedConnectionInfo.cs
- NestedContainer.cs
- TemplateBaseAction.cs
- TreeViewHitTestInfo.cs
- DocumentCollection.cs
- CookieProtection.cs
- CfgParser.cs
- ChtmlTextWriter.cs
- TemplateControlParser.cs
- VectorKeyFrameCollection.cs
- WindowsMenu.cs
- QuaternionIndependentAnimationStorage.cs
- Int16AnimationBase.cs
- EffectiveValueEntry.cs
- SqlParameter.cs
- SQLConvert.cs
- WindowsStatusBar.cs
- BaseTreeIterator.cs
- AnnotationAdorner.cs
- ProcessManager.cs
- XmlSchemaChoice.cs
- FigureParaClient.cs
- MethodBuilder.cs
- XmlDocumentSerializer.cs
- TableItemStyle.cs
- EraserBehavior.cs
- ExecutionContext.cs
- TextAction.cs
- DataGridBoolColumn.cs
- CollectionViewGroupRoot.cs
- TextServicesDisplayAttributePropertyRanges.cs
- XXXInfos.cs
- ActiveDocumentEvent.cs
- AnnotationComponentManager.cs
- DigestTraceRecordHelper.cs
- SizeValueSerializer.cs
- DefaultShape.cs
- WmpBitmapDecoder.cs
- ToolStripArrowRenderEventArgs.cs
- NavigationProperty.cs
- XmlElementList.cs
- XPathNavigatorReader.cs
- DataGridViewHitTestInfo.cs
- followingquery.cs
- FrameworkRichTextComposition.cs
- IndexedEnumerable.cs
- ChildTable.cs
- ToolStripPanelRenderEventArgs.cs
- LazyTextWriterCreator.cs
- SetStoryboardSpeedRatio.cs
- Preprocessor.cs
- CacheSection.cs
- ResourceDictionary.cs
- WebBrowsableAttribute.cs
- Variable.cs
- CodeGenerationManager.cs
- SqlEnums.cs
- FolderLevelBuildProviderAppliesToAttribute.cs
- PagerStyle.cs
- GridViewHeaderRowPresenter.cs
- WebPartConnectionsConnectVerb.cs
- StandardToolWindows.cs
- Debugger.cs
- PlanCompilerUtil.cs
- ThicknessConverter.cs
- Pen.cs
- PrimarySelectionAdorner.cs
- EventLogPermission.cs
- CompoundFileStorageReference.cs
- WaitHandle.cs
- DataGridViewCellLinkedList.cs
- EpmSyndicationContentDeSerializer.cs
- mediaclock.cs
- __Error.cs
- WebPart.cs