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
- GroupQuery.cs
- StylusButton.cs
- DuplicateDetector.cs
- ColumnPropertiesGroup.cs
- StrongNameUtility.cs
- DragDropManager.cs
- InstancePersistenceCommandException.cs
- Baml6Assembly.cs
- PagerSettings.cs
- ErrorView.xaml.cs
- HandlerBase.cs
- FileVersionInfo.cs
- ObjectQueryState.cs
- MessagingDescriptionAttribute.cs
- BuildResultCache.cs
- TabItemAutomationPeer.cs
- HttpResponseWrapper.cs
- HostElement.cs
- DataGridViewRowsAddedEventArgs.cs
- HtmlContainerControl.cs
- CompilerScope.cs
- ObjectDataSourceMethodEventArgs.cs
- SignatureResourcePool.cs
- FormViewCommandEventArgs.cs
- SqlWebEventProvider.cs
- XmlDocumentFragment.cs
- NumberFormatInfo.cs
- CalendarDateRangeChangingEventArgs.cs
- MultiPageTextView.cs
- HandlerWithFactory.cs
- WebPartPersonalization.cs
- AtomEntry.cs
- Range.cs
- COM2PropertyBuilderUITypeEditor.cs
- Vector3DIndependentAnimationStorage.cs
- WSHttpSecurity.cs
- smtppermission.cs
- OnOperation.cs
- DefaultEventAttribute.cs
- TemplateBindingExpression.cs
- ClaimTypes.cs
- ObjectConverter.cs
- ByteStack.cs
- SqlCommandSet.cs
- OpenFileDialog.cs
- TypeLibConverter.cs
- ComboBoxItem.cs
- XmlWellformedWriter.cs
- ObjectDataSourceChooseMethodsPanel.cs
- CodePageEncoding.cs
- XNodeSchemaApplier.cs
- QilInvokeEarlyBound.cs
- MaterializeFromAtom.cs
- SqlFormatter.cs
- BaseCodeDomTreeGenerator.cs
- DBDataPermission.cs
- DataGridViewAutoSizeModeEventArgs.cs
- InputManager.cs
- xmlglyphRunInfo.cs
- TextServicesCompartmentContext.cs
- RenamedEventArgs.cs
- AllMembershipCondition.cs
- CloseCollectionAsyncResult.cs
- MDIWindowDialog.cs
- RemotingServices.cs
- InfiniteTimeSpanConverter.cs
- ZoneMembershipCondition.cs
- InkCanvasFeedbackAdorner.cs
- ThreadAttributes.cs
- _NetworkingPerfCounters.cs
- DoubleAnimation.cs
- WorkflowPersistenceService.cs
- ZoneMembershipCondition.cs
- StringComparer.cs
- BufferedWebEventProvider.cs
- DecoratedNameAttribute.cs
- WrappedIUnknown.cs
- TagPrefixInfo.cs
- CacheMemory.cs
- TextureBrush.cs
- QilStrConcat.cs
- NGCUIElementCollectionSerializerAsync.cs
- ServiceObjectContainer.cs
- ContainerParaClient.cs
- HttpsHostedTransportConfiguration.cs
- Assert.cs
- ReferencedCollectionType.cs
- ClientFormsAuthenticationCredentials.cs
- UpdatePanelTriggerCollection.cs
- ImageMetadata.cs
- TableLayoutSettingsTypeConverter.cs
- HeaderedItemsControl.cs
- XmlSchemaCompilationSettings.cs
- TextServicesContext.cs
- XsdBuilder.cs
- HiddenFieldPageStatePersister.cs
- ToolStripStatusLabel.cs
- WebExceptionStatus.cs
- XmlQueryStaticData.cs
- CustomError.cs