Code:
/ FX-1434 / FX-1434 / 1.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
- mediaclock.cs
- BuildResultCache.cs
- WebPartZoneDesigner.cs
- VBCodeProvider.cs
- GroupQuery.cs
- WebPartEditorOkVerb.cs
- SqlCacheDependencySection.cs
- DataGridViewCellStyleConverter.cs
- TextElementEnumerator.cs
- LineServices.cs
- AdCreatedEventArgs.cs
- ProtocolsConfigurationEntry.cs
- DetailsViewUpdateEventArgs.cs
- PasswordPropertyTextAttribute.cs
- Pair.cs
- TableLayoutColumnStyleCollection.cs
- IncomingWebRequestContext.cs
- ExpressionPrinter.cs
- NumberSubstitution.cs
- ControlValuePropertyAttribute.cs
- Translator.cs
- RootBrowserWindowAutomationPeer.cs
- JsonFormatGeneratorStatics.cs
- ObfuscationAttribute.cs
- Command.cs
- ManipulationCompletedEventArgs.cs
- PointConverter.cs
- EncoderParameter.cs
- DirectoryGroupQuery.cs
- SchemaEntity.cs
- LinkGrep.cs
- HostedElements.cs
- OutputScopeManager.cs
- IPAddress.cs
- TimeZoneInfo.cs
- ApplicationDirectory.cs
- EffectiveValueEntry.cs
- DataAdapter.cs
- ConnectionStringSettings.cs
- ArgIterator.cs
- XmlNullResolver.cs
- TextElementEnumerator.cs
- SqlCharStream.cs
- MyContact.cs
- RegexGroupCollection.cs
- GestureRecognitionResult.cs
- VectorCollectionValueSerializer.cs
- SimpleBitVector32.cs
- AdPostCacheSubstitution.cs
- TransactionFilter.cs
- FormViewRow.cs
- TextEvent.cs
- DataGridTableCollection.cs
- InputLangChangeEvent.cs
- IndependentlyAnimatedPropertyMetadata.cs
- ControlCollection.cs
- IsolatedStoragePermission.cs
- TextFormatterContext.cs
- EpmAttributeNameBuilder.cs
- ProtocolsConfigurationEntry.cs
- StyleBamlTreeBuilder.cs
- AttachInfo.cs
- StaticExtension.cs
- DoubleAnimationBase.cs
- CompositeActivityValidator.cs
- GridViewCancelEditEventArgs.cs
- AmbientLight.cs
- odbcmetadatacollectionnames.cs
- ReservationNotFoundException.cs
- ListViewUpdatedEventArgs.cs
- ResizeBehavior.cs
- ShortcutKeysEditor.cs
- XmlILStorageConverter.cs
- XmlNodeReader.cs
- SourceLineInfo.cs
- LayoutEngine.cs
- EventProperty.cs
- ListItem.cs
- SerializationHelper.cs
- FileDialogCustomPlace.cs
- SqlGenerator.cs
- Region.cs
- SmiConnection.cs
- TableItemStyle.cs
- MatcherBuilder.cs
- SoapSchemaImporter.cs
- TextTabProperties.cs
- EDesignUtil.cs
- MimeTypePropertyAttribute.cs
- PerfCounterSection.cs
- Paragraph.cs
- DesignerImageAdapter.cs
- Size3D.cs
- HtmlUtf8RawTextWriter.cs
- RoamingStoreFileUtility.cs
- SslStream.cs
- FontCollection.cs
- StoragePropertyMapping.cs
- CodeStatementCollection.cs
- StringConverter.cs