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
- ResumeStoryboard.cs
- InfiniteTimeSpanConverter.cs
- Rectangle.cs
- Throw.cs
- PackageRelationship.cs
- XmlSerializerNamespaces.cs
- BinaryWriter.cs
- SiteMapSection.cs
- Native.cs
- AttachInfo.cs
- RecordBuilder.cs
- SoapRpcServiceAttribute.cs
- FlowDocumentFormatter.cs
- RadioButtonRenderer.cs
- References.cs
- WebPartDeleteVerb.cs
- WsdlInspector.cs
- BounceEase.cs
- LogFlushAsyncResult.cs
- ActivityMarkupSerializer.cs
- ItemsPresenter.cs
- WinEventHandler.cs
- AutoResizedEvent.cs
- BamlRecordHelper.cs
- DataSourceControl.cs
- SqlDataSourceFilteringEventArgs.cs
- CodeIdentifier.cs
- DbCommandTree.cs
- Pool.cs
- PageAsyncTask.cs
- ToolboxItemFilterAttribute.cs
- XmlArrayItemAttribute.cs
- MultiAsyncResult.cs
- StatusBarPanel.cs
- compensatingcollection.cs
- SendMailErrorEventArgs.cs
- EncryptedKey.cs
- HttpPostedFile.cs
- SafeSecurityHandles.cs
- MailMessageEventArgs.cs
- EntityDataSourceValidationException.cs
- SqlBuilder.cs
- QueryRelOp.cs
- MiniAssembly.cs
- ScalarOps.cs
- LZCodec.cs
- PartialCachingAttribute.cs
- LogManagementAsyncResult.cs
- MessageVersionConverter.cs
- InheritedPropertyChangedEventArgs.cs
- Win32MouseDevice.cs
- CollectionsUtil.cs
- TextEditorParagraphs.cs
- TimersDescriptionAttribute.cs
- HttpWriter.cs
- UriTemplateTableMatchCandidate.cs
- DownloadProgressEventArgs.cs
- ExpressionBuilder.cs
- RegexMatchCollection.cs
- DataGridAddNewRow.cs
- BrowserCapabilitiesCodeGenerator.cs
- ArrayElementGridEntry.cs
- DataMemberFieldEditor.cs
- ControlPropertyNameConverter.cs
- TargetException.cs
- WebPartHeaderCloseVerb.cs
- ObjectDataSourceDisposingEventArgs.cs
- Matrix3D.cs
- ZipPackagePart.cs
- UpdatePanelTrigger.cs
- TextEffectCollection.cs
- HostSecurityManager.cs
- _SingleItemRequestCache.cs
- PlainXmlDeserializer.cs
- CodeSnippetCompileUnit.cs
- ProxySimple.cs
- MouseBinding.cs
- FontCacheUtil.cs
- ImageUrlEditor.cs
- AssociatedControlConverter.cs
- ToolStripLocationCancelEventArgs.cs
- DbReferenceCollection.cs
- CodeCommentStatementCollection.cs
- HttpWebResponse.cs
- HierarchicalDataBoundControl.cs
- ViewCellSlot.cs
- AutoCompleteStringCollection.cs
- FormatSettings.cs
- CreateUserWizardStep.cs
- TTSVoice.cs
- VersionedStreamOwner.cs
- BamlLocalizationDictionary.cs
- IxmlLineInfo.cs
- DataContractAttribute.cs
- HttpModule.cs
- PropertyMappingExceptionEventArgs.cs
- Array.cs
- CrossAppDomainChannel.cs
- IteratorFilter.cs
- RegexCharClass.cs