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
- RelationalExpressions.cs
- ImageKeyConverter.cs
- PlanCompilerUtil.cs
- BasePropertyDescriptor.cs
- FilterableAttribute.cs
- ManagementObject.cs
- Positioning.cs
- HWStack.cs
- X509CertificateInitiatorClientCredential.cs
- X509ImageLogo.cs
- RuntimeConfigLKG.cs
- DataObject.cs
- LostFocusEventManager.cs
- StringOutput.cs
- XmlParserContext.cs
- CorrelationScope.cs
- DataExpression.cs
- AnchorEditor.cs
- DeviceOverridableAttribute.cs
- FormView.cs
- MiniAssembly.cs
- RegistryPermission.cs
- ProcessModelSection.cs
- XmlTextReaderImplHelpers.cs
- EndpointInfo.cs
- MaskedTextProvider.cs
- SimpleLine.cs
- JsonGlobals.cs
- PageContentCollection.cs
- EmptyStringExpandableObjectConverter.cs
- AnnotationComponentManager.cs
- ExternalException.cs
- BitmapEffect.cs
- SrgsElementFactory.cs
- RegexCompiler.cs
- PrintingPermissionAttribute.cs
- Predicate.cs
- SynchronizedKeyedCollection.cs
- DataSourceHelper.cs
- DependencyObject.cs
- SourceFilter.cs
- LinqDataSourceView.cs
- HuffmanTree.cs
- HandleInitializationContext.cs
- DependencyPropertyAttribute.cs
- ExpressionBindingsDialog.cs
- TransactedBatchContext.cs
- RefreshPropertiesAttribute.cs
- LockedHandleGlyph.cs
- SafeNativeMethodsCLR.cs
- EnvelopedSignatureTransform.cs
- Rss20ItemFormatter.cs
- UnsafePeerToPeerMethods.cs
- ValueType.cs
- FacetEnabledSchemaElement.cs
- ReturnValue.cs
- LoginDesignerUtil.cs
- TypedTableHandler.cs
- EqualityArray.cs
- EntityViewGenerationAttribute.cs
- DiscoveryMessageProperty.cs
- GlyphInfoList.cs
- ProviderConnectionPoint.cs
- Rfc2898DeriveBytes.cs
- AvTraceFormat.cs
- ReadOnlyMetadataCollection.cs
- InheritedPropertyDescriptor.cs
- Literal.cs
- StandardCommands.cs
- ReadWriteControlDesigner.cs
- CodeMemberProperty.cs
- CompareInfo.cs
- ManipulationCompletedEventArgs.cs
- PrintingPermission.cs
- TypefaceMap.cs
- CommandValueSerializer.cs
- DataGridViewSelectedColumnCollection.cs
- XmlNullResolver.cs
- GridViewDeletedEventArgs.cs
- ComponentEditorForm.cs
- Literal.cs
- Renderer.cs
- MultipartIdentifier.cs
- CroppedBitmap.cs
- TimeoutConverter.cs
- Material.cs
- RangeContentEnumerator.cs
- PlacementWorkspace.cs
- RepeaterItemCollection.cs
- UrlPropertyAttribute.cs
- WriteTimeStream.cs
- XmlUtf8RawTextWriter.cs
- GridViewEditEventArgs.cs
- TypeConverterHelper.cs
- TableLayoutPanel.cs
- ImageSource.cs
- DivideByZeroException.cs
- X509Chain.cs
- DataBindingHandlerAttribute.cs
- ChannelParameterCollection.cs