Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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
- PrintingPermissionAttribute.cs
- StickyNoteAnnotations.cs
- FindProgressChangedEventArgs.cs
- IItemContainerGenerator.cs
- GeometryGroup.cs
- HandlerBase.cs
- LocatorBase.cs
- FtpRequestCacheValidator.cs
- NameValueCollection.cs
- WebServicesSection.cs
- DebuggerAttributes.cs
- DataGridViewCell.cs
- ComponentSerializationService.cs
- RtType.cs
- FileLoadException.cs
- GlyphTypeface.cs
- PopupRootAutomationPeer.cs
- TemplateParser.cs
- HeaderedContentControl.cs
- MouseGesture.cs
- Rectangle.cs
- ServiceChannelProxy.cs
- ErrorHandler.cs
- ObjectList.cs
- MeshGeometry3D.cs
- TypeListConverter.cs
- ScriptManagerProxy.cs
- _DisconnectOverlappedAsyncResult.cs
- State.cs
- UdpSocket.cs
- ReadOnlyDictionary.cs
- CompoundFileStorageReference.cs
- RenderData.cs
- Attribute.cs
- ECDsaCng.cs
- UncommonField.cs
- X509Chain.cs
- CachedPathData.cs
- ItemMap.cs
- RelationshipManager.cs
- ILGen.cs
- Configuration.cs
- TypeElementCollection.cs
- WebPartZoneCollection.cs
- LambdaCompiler.Binary.cs
- FtpRequestCacheValidator.cs
- XmlSchemaSet.cs
- TransactionContextValidator.cs
- DBCommandBuilder.cs
- ComplexTypeEmitter.cs
- WrapperEqualityComparer.cs
- RequestCachePolicy.cs
- _AcceptOverlappedAsyncResult.cs
- WindowsSpinner.cs
- BufferedGraphics.cs
- ConsoleKeyInfo.cs
- BaseParagraph.cs
- SortableBindingList.cs
- Properties.cs
- EpmContentDeSerializerBase.cs
- Triangle.cs
- ComponentRenameEvent.cs
- SupportsEventValidationAttribute.cs
- X509SecurityToken.cs
- DBCommandBuilder.cs
- SharedDp.cs
- ByeMessage11.cs
- SimpleApplicationHost.cs
- Unit.cs
- DeferredBinaryDeserializerExtension.cs
- NodeInfo.cs
- NameGenerator.cs
- DataGrid.cs
- HttpListenerPrefixCollection.cs
- WmpBitmapEncoder.cs
- GridViewSelectEventArgs.cs
- _ContextAwareResult.cs
- ThrowHelper.cs
- CodeAccessPermission.cs
- DataListCommandEventArgs.cs
- DynamicRendererThreadManager.cs
- InputProviderSite.cs
- OracleFactory.cs
- ProfileManager.cs
- Base64Encoder.cs
- ProfileEventArgs.cs
- GC.cs
- HtmlControl.cs
- ContentElement.cs
- SspiNegotiationTokenAuthenticator.cs
- HtmlValidatorAdapter.cs
- ProcessHostMapPath.cs
- LogicalExpr.cs
- TimeZone.cs
- ProfileSection.cs
- TextAutomationPeer.cs
- HtmlTableRow.cs
- DATA_BLOB.cs
- Control.cs
- FileIOPermission.cs