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
- DynamicQueryableWrapper.cs
- OrderPreservingPipeliningMergeHelper.cs
- TextEditorLists.cs
- DbMetaDataFactory.cs
- TypeToken.cs
- SqlUserDefinedAggregateAttribute.cs
- TextSchema.cs
- DataBinder.cs
- DesignerResources.cs
- UndirectedGraph.cs
- OleDbCommand.cs
- UiaCoreTypesApi.cs
- ping.cs
- BitConverter.cs
- DodSequenceMerge.cs
- PolicyDesigner.cs
- selecteditemcollection.cs
- WebPartsPersonalizationAuthorization.cs
- SmiConnection.cs
- AlternateViewCollection.cs
- ActivityExecutionContext.cs
- DictionarySectionHandler.cs
- DataGrid.cs
- WebCategoryAttribute.cs
- LicFileLicenseProvider.cs
- OleDbStruct.cs
- DrawingBrush.cs
- XmlnsDictionary.cs
- CopyNamespacesAction.cs
- ToolZoneDesigner.cs
- Condition.cs
- Int16.cs
- SerializationEventsCache.cs
- TypeSystem.cs
- DebugManager.cs
- EventRoute.cs
- DockAndAnchorLayout.cs
- ViewStateModeByIdAttribute.cs
- EntityFunctions.cs
- ProgressBarBrushConverter.cs
- ScriptingScriptResourceHandlerSection.cs
- WmiEventSink.cs
- CommandBindingCollection.cs
- RecordManager.cs
- ManualResetEventSlim.cs
- DataObjectMethodAttribute.cs
- UnmanagedHandle.cs
- DetailsViewUpdatedEventArgs.cs
- WebExceptionStatus.cs
- SmtpFailedRecipientsException.cs
- AutoResetEvent.cs
- FixedSOMSemanticBox.cs
- WinEventQueueItem.cs
- AssemblyHash.cs
- HtmlHead.cs
- Int32Rect.cs
- SqlClientPermission.cs
- DecoderBestFitFallback.cs
- TopClause.cs
- infer.cs
- ServiceDescriptions.cs
- WebPartCollection.cs
- PassportIdentity.cs
- ProcessModelSection.cs
- IisTraceListener.cs
- SqlErrorCollection.cs
- TimeZone.cs
- ReadOnlyPropertyMetadata.cs
- VectorKeyFrameCollection.cs
- AxDesigner.cs
- CounterCreationData.cs
- RenderCapability.cs
- MediaTimeline.cs
- DuplexChannelFactory.cs
- SspiWrapper.cs
- RangeBaseAutomationPeer.cs
- dataobject.cs
- ObjectSelectorEditor.cs
- MetadataArtifactLoaderCompositeResource.cs
- CategoriesDocument.cs
- ViewManager.cs
- UriSection.cs
- iisPickupDirectory.cs
- ValueSerializer.cs
- MemoryFailPoint.cs
- WmpBitmapDecoder.cs
- ClientUIRequest.cs
- HashUtility.cs
- BooleanFunctions.cs
- MembershipPasswordException.cs
- GridView.cs
- DefaultEventAttribute.cs
- TriggerAction.cs
- DoubleAnimationUsingPath.cs
- SchemaLookupTable.cs
- DynamicValidator.cs
- Vector3D.cs
- SqlClientFactory.cs
- LinqDataSourceContextEventArgs.cs
- XmlSignificantWhitespace.cs