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
- DataListCommandEventArgs.cs
- ErrorWebPart.cs
- ClientSettingsSection.cs
- SignedXml.cs
- AbstractDataSvcMapFileLoader.cs
- ConfigurationSectionCollection.cs
- UnauthorizedAccessException.cs
- EventLogPermissionEntry.cs
- AlignmentXValidation.cs
- WinEventTracker.cs
- UnsafeNativeMethodsPenimc.cs
- RequiredFieldValidator.cs
- PhysicalOps.cs
- PresentationAppDomainManager.cs
- DNS.cs
- ConfigurationPropertyCollection.cs
- TextEditorSpelling.cs
- WinFormsComponentEditor.cs
- Debugger.cs
- BamlStream.cs
- PtsPage.cs
- StrongTypingException.cs
- ResourceDescriptionAttribute.cs
- WindowsListViewGroupHelper.cs
- LifetimeServices.cs
- EdgeModeValidation.cs
- SourceInterpreter.cs
- CommonProperties.cs
- BrowserCapabilitiesFactory.cs
- HostingEnvironmentWrapper.cs
- SQLInt16Storage.cs
- ListViewDeletedEventArgs.cs
- XmlElementElement.cs
- ServicePoint.cs
- CacheModeConverter.cs
- Root.cs
- XmlSerializationReader.cs
- NativeMethods.cs
- ClockGroup.cs
- DataContext.cs
- RequestCacheManager.cs
- DefinitionBase.cs
- Classification.cs
- TableCell.cs
- CompilerGlobalScopeAttribute.cs
- MachineKeyConverter.cs
- LoaderAllocator.cs
- CurrentChangingEventArgs.cs
- SkipQueryOptionExpression.cs
- XmlElementAttribute.cs
- RotationValidation.cs
- ThreadSafeList.cs
- XmlTextEncoder.cs
- SchemaEntity.cs
- PasswordRecovery.cs
- ChtmlImageAdapter.cs
- GlyphManager.cs
- ImageMap.cs
- MachineKeyConverter.cs
- SEHException.cs
- ExtendedPropertyDescriptor.cs
- ManifestSignatureInformation.cs
- PartitionResolver.cs
- XmlStreamStore.cs
- Stopwatch.cs
- RuleSettings.cs
- UICuesEvent.cs
- DBBindings.cs
- ClientSettings.cs
- ValidationErrorCollection.cs
- ActivationServices.cs
- MetaDataInfo.cs
- InputProviderSite.cs
- ClickablePoint.cs
- TextSelection.cs
- DataGridViewCellErrorTextNeededEventArgs.cs
- UnmanagedMemoryStream.cs
- ModelVisual3D.cs
- CatalogPartCollection.cs
- CompilerResults.cs
- ReferencedCollectionType.cs
- InputLanguageSource.cs
- CollectionViewSource.cs
- SessionStateItemCollection.cs
- IntegerFacetDescriptionElement.cs
- XmlSerializationReader.cs
- EntityDataSourceState.cs
- SqlConnectionManager.cs
- SimpleType.cs
- FontConverter.cs
- ClientConfigurationHost.cs
- UserUseLicenseDictionaryLoader.cs
- StreamGeometry.cs
- NameValueCollection.cs
- AnnotationElement.cs
- RoleProviderPrincipal.cs
- TableItemPatternIdentifiers.cs
- ConfigurationSectionHelper.cs
- HighContrastHelper.cs
- DataGridViewSortCompareEventArgs.cs