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
- ScrollBar.cs
- DataBoundControl.cs
- GenerateTemporaryTargetAssembly.cs
- RequestCachePolicy.cs
- TagPrefixCollection.cs
- AuditLog.cs
- UnsafeNativeMethods.cs
- SoapRpcServiceAttribute.cs
- EventRoute.cs
- FontTypeConverter.cs
- DefaultEvaluationContext.cs
- IListConverters.cs
- TrackingStringDictionary.cs
- DataBindingExpressionBuilder.cs
- DefinitionProperties.cs
- Parameter.cs
- ListBoxAutomationPeer.cs
- WebPartEditorApplyVerb.cs
- Translator.cs
- ArrayWithOffset.cs
- CellTreeNodeVisitors.cs
- _SslSessionsCache.cs
- TcpProcessProtocolHandler.cs
- WebPartZoneBase.cs
- LowerCaseStringConverter.cs
- ValidationPropertyAttribute.cs
- CodeCatchClauseCollection.cs
- ProtocolReflector.cs
- ExpressionBuilderContext.cs
- FormsAuthenticationModule.cs
- SoapMessage.cs
- DataStreamFromComStream.cs
- ExtractorMetadata.cs
- PropertyInformationCollection.cs
- EditorZone.cs
- LingerOption.cs
- ArrayItemReference.cs
- MailMessage.cs
- ImageInfo.cs
- DocumentGrid.cs
- Subtree.cs
- MatchAttribute.cs
- PreviewPageInfo.cs
- X509Extension.cs
- SetStoryboardSpeedRatio.cs
- NullExtension.cs
- GradientStopCollection.cs
- DataViewSettingCollection.cs
- ErrorFormatter.cs
- X500Name.cs
- URLEditor.cs
- DynamicArgumentDialog.cs
- ping.cs
- UnsettableComboBox.cs
- ItemCollection.cs
- DeclaredTypeValidator.cs
- Deflater.cs
- CommunicationException.cs
- StorageInfo.cs
- FormViewPageEventArgs.cs
- DataGridViewLinkColumn.cs
- DataViewManager.cs
- XmlSerializer.cs
- VisualBrush.cs
- BeginEvent.cs
- ToolStripDropDownDesigner.cs
- EventDescriptor.cs
- TextSerializer.cs
- HttpCapabilitiesEvaluator.cs
- SizeLimitedCache.cs
- cookie.cs
- DispatcherExceptionFilterEventArgs.cs
- ScopelessEnumAttribute.cs
- BuildProviderCollection.cs
- PackWebResponse.cs
- EventEntry.cs
- WaitHandleCannotBeOpenedException.cs
- XPathNavigator.cs
- MemoryResponseElement.cs
- EnumMember.cs
- StorageScalarPropertyMapping.cs
- DataGridViewButtonColumn.cs
- ContentElement.cs
- ObservableCollection.cs
- CompilerErrorCollection.cs
- BroadcastEventHelper.cs
- WpfPayload.cs
- FixedFindEngine.cs
- SubclassTypeValidatorAttribute.cs
- HttpCookieCollection.cs
- BaseValidator.cs
- WindowsComboBox.cs
- SpAudioStreamWrapper.cs
- AssertSection.cs
- DebugView.cs
- SqlWebEventProvider.cs
- ApplicationBuildProvider.cs
- ComplexType.cs
- Types.cs
- DbDataRecord.cs