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
- X509CertificateValidator.cs
- PerformanceCounterPermissionAttribute.cs
- ButtonColumn.cs
- ClientFormsIdentity.cs
- TypeNameConverter.cs
- TraceEventCache.cs
- Hex.cs
- LinkedResourceCollection.cs
- BitmapDownload.cs
- FormViewUpdateEventArgs.cs
- CreateUserErrorEventArgs.cs
- ImageMapEventArgs.cs
- Predicate.cs
- MultiSelectRootGridEntry.cs
- EditorZoneDesigner.cs
- SHA1CryptoServiceProvider.cs
- DataGridRow.cs
- Win32SafeHandles.cs
- DeploymentSection.cs
- FormViewDeleteEventArgs.cs
- PropertyValue.cs
- AssemblyAssociatedContentFileAttribute.cs
- ManipulationDelta.cs
- HelpPage.cs
- PrivateFontCollection.cs
- FileDialogPermission.cs
- SiteMapDataSourceView.cs
- SystemParameters.cs
- StylusLogic.cs
- Point3DCollection.cs
- CodeIdentifiers.cs
- SchemaObjectWriter.cs
- PnrpPermission.cs
- ActivityInstanceReference.cs
- Rotation3DAnimation.cs
- AssertUtility.cs
- RuntimeConfigLKG.cs
- SafeRightsManagementEnvironmentHandle.cs
- ColorTransform.cs
- InvalidOleVariantTypeException.cs
- SystemTcpStatistics.cs
- CharEnumerator.cs
- PopOutPanel.cs
- HtmlForm.cs
- IndicFontClient.cs
- EncryptedPackageFilter.cs
- ServerIdentity.cs
- Misc.cs
- ClientFormsAuthenticationMembershipProvider.cs
- coordinatorfactory.cs
- WindowsAltTab.cs
- DataGridViewCellValidatingEventArgs.cs
- AccessControlEntry.cs
- DataGridHeaderBorder.cs
- FileSecurity.cs
- Visitor.cs
- CodeConditionStatement.cs
- EncryptedXml.cs
- EditingMode.cs
- FramingChannels.cs
- ScriptRegistrationManager.cs
- ReplyAdapterChannelListener.cs
- RequiredFieldValidator.cs
- TreeNodeBinding.cs
- LinqDataSourceDisposeEventArgs.cs
- StopStoryboard.cs
- XmlParserContext.cs
- AccessibleObject.cs
- XmlIlTypeHelper.cs
- wmiprovider.cs
- DataAdapter.cs
- WindowsGraphics2.cs
- Color.cs
- XamlPathDataSerializer.cs
- ParallelLoopState.cs
- ExpandSegmentCollection.cs
- Assert.cs
- BasicHttpMessageSecurityElement.cs
- EndEvent.cs
- RemotingSurrogateSelector.cs
- AppDomainUnloadedException.cs
- StylusPointCollection.cs
- XmlSecureResolver.cs
- BitStream.cs
- CodeDesigner.cs
- TypeContext.cs
- HttpApplicationStateBase.cs
- HandleExceptionArgs.cs
- RegexRunner.cs
- SpoolingTask.cs
- OptimisticConcurrencyException.cs
- TCEAdapterGenerator.cs
- HttpCacheParams.cs
- NativeCompoundFileAPIs.cs
- ValidationError.cs
- NameValueCollection.cs
- DnsEndPoint.cs
- DataViewSetting.cs
- UnmanagedMemoryStreamWrapper.cs
- HighlightComponent.cs