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
- HelpKeywordAttribute.cs
- EventSchemaTraceListener.cs
- SchemaAttDef.cs
- FixedSOMPage.cs
- InheritanceRules.cs
- ReadOnlyDictionary.cs
- XamlFilter.cs
- FixedSchema.cs
- SafeNativeMethods.cs
- XmlChildNodes.cs
- ToolTipService.cs
- MetadataItemEmitter.cs
- EditingCommands.cs
- PermissionListSet.cs
- InfoCardTrace.cs
- WebDescriptionAttribute.cs
- NavigatorInput.cs
- SoapIgnoreAttribute.cs
- HtmlTitle.cs
- BindingCompleteEventArgs.cs
- ProfileSection.cs
- SharedStatics.cs
- ManipulationInertiaStartingEventArgs.cs
- MsmqOutputSessionChannel.cs
- XPathParser.cs
- ImpersonationContext.cs
- DataGridViewColumn.cs
- LambdaSerializationException.cs
- NamespaceEmitter.cs
- DbConnectionPoolCounters.cs
- ToolTipAutomationPeer.cs
- ProfileServiceManager.cs
- HtmlDocument.cs
- BitmapData.cs
- DoubleLinkListEnumerator.cs
- SiteMap.cs
- ExpressionBuilder.cs
- CompilationLock.cs
- HostSecurityManager.cs
- DetailsViewInsertedEventArgs.cs
- TextFindEngine.cs
- EventProperty.cs
- UserThread.cs
- PropertyInfoSet.cs
- safex509handles.cs
- LinqDataSourceInsertEventArgs.cs
- PrinterSettings.cs
- TemplateContent.cs
- ValueExpressions.cs
- SessionStateItemCollection.cs
- QueryStringHandler.cs
- CounterCreationDataCollection.cs
- Size.cs
- MimeParameterWriter.cs
- elementinformation.cs
- Error.cs
- ReturnType.cs
- ServicePointManager.cs
- UIPermission.cs
- TrustManager.cs
- Rijndael.cs
- RightsManagementPermission.cs
- DiagnosticTraceSource.cs
- EditorPartCollection.cs
- EventSourceCreationData.cs
- MetricEntry.cs
- ToolStripAdornerWindowService.cs
- BaseCollection.cs
- XmlSubtreeReader.cs
- ReliableChannelBinder.cs
- ResetableIterator.cs
- CodeTypeParameterCollection.cs
- StreamInfo.cs
- ReachSerializationUtils.cs
- TreeChangeInfo.cs
- HwndStylusInputProvider.cs
- SystemException.cs
- SmiRequestExecutor.cs
- DesignerOptionService.cs
- Control.cs
- EventLogInformation.cs
- XhtmlStyleClass.cs
- StateRuntime.cs
- UserControlAutomationPeer.cs
- SqlProviderManifest.cs
- DataSpaceManager.cs
- XmlSchemaComplexContent.cs
- XmlRootAttribute.cs
- SymbolMethod.cs
- SessionStateSection.cs
- IndicCharClassifier.cs
- ConfigWriter.cs
- ConfigXmlAttribute.cs
- WindowsToolbarItemAsMenuItem.cs
- TriState.cs
- XmlCodeExporter.cs
- Error.cs
- AuthenticationService.cs
- DataGridViewRowEventArgs.cs
- SettingsPropertyValueCollection.cs