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
- AuthenticodeSignatureInformation.cs
- DateTimeFormatInfo.cs
- QueryOutputWriter.cs
- SiteMapHierarchicalDataSourceView.cs
- NgenServicingAttributes.cs
- MsmqMessageSerializationFormat.cs
- DropDownHolder.cs
- Span.cs
- AsyncSerializedWorker.cs
- Attributes.cs
- MetafileHeaderWmf.cs
- DBBindings.cs
- FileLogRecord.cs
- _ChunkParse.cs
- TdsValueSetter.cs
- StringResourceManager.cs
- TransactionFlowElement.cs
- DecoderExceptionFallback.cs
- ErrorRuntimeConfig.cs
- TrustSection.cs
- LiteralSubsegment.cs
- DataTableExtensions.cs
- Polygon.cs
- Selector.cs
- CreateUserWizard.cs
- QueryInterceptorAttribute.cs
- Int32.cs
- XmlElementElementCollection.cs
- MailAddress.cs
- RuntimeWrappedException.cs
- Win32MouseDevice.cs
- DeflateInput.cs
- CodeFieldReferenceExpression.cs
- TempEnvironment.cs
- ReadOnlyDataSource.cs
- Command.cs
- OutputCacheModule.cs
- Point4D.cs
- InputReferenceExpression.cs
- TaskScheduler.cs
- StdValidatorsAndConverters.cs
- PropertyEmitter.cs
- EpmContentSerializerBase.cs
- ChangePassword.cs
- AspNetSynchronizationContext.cs
- DataTransferEventArgs.cs
- ADRole.cs
- OleStrCAMarshaler.cs
- SystemTcpStatistics.cs
- XmlCharCheckingWriter.cs
- XmlFormatWriterGenerator.cs
- XmlRawWriter.cs
- StaticContext.cs
- ClientConvert.cs
- SoapCommonClasses.cs
- UrlPath.cs
- DocumentEventArgs.cs
- CheckBoxStandardAdapter.cs
- DocumentPageViewAutomationPeer.cs
- TreeViewItemAutomationPeer.cs
- DbParameterCollectionHelper.cs
- ImageInfo.cs
- ClientRolePrincipal.cs
- XmlSerializationGeneratedCode.cs
- CloudCollection.cs
- SafeRightsManagementQueryHandle.cs
- IntegerValidator.cs
- RuleSetDialog.Designer.cs
- TableCell.cs
- ControlTemplate.cs
- WsdlBuildProvider.cs
- SourceItem.cs
- AssemblyBuilder.cs
- RemoteWebConfigurationHostStream.cs
- OpenFileDialog.cs
- SHA1Managed.cs
- Literal.cs
- UnmanagedMemoryStream.cs
- StylusButton.cs
- BCryptSafeHandles.cs
- Expressions.cs
- ModelItemKeyValuePair.cs
- AmbiguousMatchException.cs
- CompilerGlobalScopeAttribute.cs
- DependencyObject.cs
- AssemblyContextControlItem.cs
- PassportAuthenticationEventArgs.cs
- EventManager.cs
- InvalidCastException.cs
- LoginName.cs
- IndicShape.cs
- InputBinding.cs
- EndOfStreamException.cs
- Stopwatch.cs
- XmlSchemaParticle.cs
- TypeBuilder.cs
- ComponentCollection.cs
- Boolean.cs
- DrawingBrush.cs
- JobStaple.cs