Code:
/ DotNET / DotNET / 8.0 / untmp / whidbey / REDBITS / 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 }
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- DocobjHost.cs
- RuntimeConfigurationRecord.cs
- AdjustableArrowCap.cs
- ListView.cs
- BindUriHelper.cs
- DisableDpiAwarenessAttribute.cs
- ThicknessAnimationBase.cs
- XmlSerializationWriter.cs
- Binding.cs
- EncodingFallbackAwareXmlTextWriter.cs
- AsymmetricKeyExchangeDeformatter.cs
- SqlCharStream.cs
- TemplatedWizardStep.cs
- XmlDocument.cs
- NegatedCellConstant.cs
- ComAdminInterfaces.cs
- BitmapEffectGeneralTransform.cs
- SmiMetaData.cs
- ItemsChangedEventArgs.cs
- TextBlockAutomationPeer.cs
- DiscoveryDocumentLinksPattern.cs
- DependencyPropertyDescriptor.cs
- OperatingSystemVersionCheck.cs
- DataGridRow.cs
- HtmlWindow.cs
- HMACMD5.cs
- VisualStyleTypesAndProperties.cs
- HitTestParameters3D.cs
- TemplateFactory.cs
- AlternateViewCollection.cs
- TrustManager.cs
- ApplicationSecurityInfo.cs
- TdsValueSetter.cs
- ToolStripArrowRenderEventArgs.cs
- CacheHelper.cs
- PropertyNames.cs
- SchemaNames.cs
- WebColorConverter.cs
- HttpResponseInternalWrapper.cs
- BindingContext.cs
- LocalizationComments.cs
- ToolStripLocationCancelEventArgs.cs
- CodeAccessSecurityEngine.cs
- SafeHandle.cs
- SHA512.cs
- Int32Animation.cs
- PageStatePersister.cs
- ToolStripSettings.cs
- ZipIOFileItemStream.cs
- GridViewRowPresenter.cs
- DataBoundControlParameterTarget.cs
- DateTimeParse.cs
- XmlILIndex.cs
- BevelBitmapEffect.cs
- CrossSiteScriptingValidation.cs
- ByeMessage11.cs
- FactoryMaker.cs
- CodePrimitiveExpression.cs
- ScrollProviderWrapper.cs
- IdentityNotMappedException.cs
- ToolStripSplitStackLayout.cs
- ParallelTimeline.cs
- WmpBitmapDecoder.cs
- PersonalizationProviderCollection.cs
- ReachUIElementCollectionSerializerAsync.cs
- ExceptionUtil.cs
- TileBrush.cs
- InfoCardRSACryptoProvider.cs
- ThemeDirectoryCompiler.cs
- SqlDataSourceConnectionPanel.cs
- IDQuery.cs
- InteropBitmapSource.cs
- ManagementObjectCollection.cs
- TemplateBindingExpression.cs
- Dynamic.cs
- EncoderParameter.cs
- InfoCardSymmetricAlgorithm.cs
- BindingNavigatorDesigner.cs
- WebBrowserNavigatingEventHandler.cs
- ItemsChangedEventArgs.cs
- XmlConvert.cs
- ErrorLog.cs
- NameValueCache.cs
- UInt64Converter.cs
- PersistenceTypeAttribute.cs
- OrderedEnumerableRowCollection.cs
- CategoryNameCollection.cs
- Decimal.cs
- AnchorEditor.cs
- PermissionToken.cs
- TabPage.cs
- WSTrust.cs
- MatrixAnimationUsingPath.cs
- StringDictionary.cs
- VectorCollection.cs
- QilInvokeEarlyBound.cs
- MultiBinding.cs
- ClientType.cs
- AddInController.cs
- TokenBasedSetEnumerator.cs