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
- DbModificationCommandTree.cs
- CompilerTypeWithParams.cs
- MaskedTextBoxDesigner.cs
- Propagator.JoinPropagator.cs
- DnsPermission.cs
- TypeForwardedToAttribute.cs
- BindingSource.cs
- KeyInstance.cs
- Rule.cs
- DataGridViewLinkCell.cs
- MessageContractExporter.cs
- XhtmlTextWriter.cs
- ReliabilityContractAttribute.cs
- DictionarySurrogate.cs
- StrokeNodeEnumerator.cs
- UIElementHelper.cs
- ApplicationInfo.cs
- PenLineJoinValidation.cs
- UnknownBitmapEncoder.cs
- RegexWorker.cs
- OperationAbortedException.cs
- DBCommand.cs
- RegionIterator.cs
- DeclarationUpdate.cs
- SynchronizedDispatch.cs
- PropertyGridView.cs
- StreamSecurityUpgradeInitiator.cs
- InputScopeNameConverter.cs
- TableChangeProcessor.cs
- NavigationPropertyEmitter.cs
- XmlILOptimizerVisitor.cs
- ListControlBoundActionList.cs
- StaticExtension.cs
- EntitySqlQueryState.cs
- HyperLinkField.cs
- DefaultAutoFieldGenerator.cs
- MimeObjectFactory.cs
- ExceptionHelpers.cs
- FormViewModeEventArgs.cs
- DateTimeConstantAttribute.cs
- DesignerCalendarAdapter.cs
- GeneralTransform3D.cs
- EUCJPEncoding.cs
- ModelPerspective.cs
- SQLGuid.cs
- SourceInterpreter.cs
- ServiceObjectContainer.cs
- SecurityVerifiedMessage.cs
- OdbcError.cs
- ObjectStateManagerMetadata.cs
- CopyEncoder.cs
- DbConnectionStringCommon.cs
- ClientScriptManager.cs
- M3DUtil.cs
- TagMapCollection.cs
- XmlAttributeAttribute.cs
- ActionItem.cs
- Exceptions.cs
- CodeDirectionExpression.cs
- SQLBinaryStorage.cs
- XmlObjectSerializerWriteContext.cs
- SoapElementAttribute.cs
- DatagridviewDisplayedBandsData.cs
- TableLayoutCellPaintEventArgs.cs
- SelectionProcessor.cs
- ToolStripPanelRenderEventArgs.cs
- MemberBinding.cs
- KoreanCalendar.cs
- RegexStringValidatorAttribute.cs
- Activity.cs
- SeekableReadStream.cs
- UnmanagedMemoryStream.cs
- Environment.cs
- MembershipSection.cs
- IconHelper.cs
- DeviceContexts.cs
- LabelTarget.cs
- TextServicesContext.cs
- EmptyEnumerator.cs
- BinaryFormatterWriter.cs
- XmlEncoding.cs
- SqlCacheDependencySection.cs
- ObjectCloneHelper.cs
- DbConnectionPoolCounters.cs
- XmlILTrace.cs
- UidManager.cs
- HtmlWindow.cs
- DrawingState.cs
- SmiMetaDataProperty.cs
- WebPartConnectionsCloseVerb.cs
- XhtmlBasicSelectionListAdapter.cs
- XamlVector3DCollectionSerializer.cs
- Typeface.cs
- AspCompat.cs
- PersonalizationState.cs
- FontInfo.cs
- TypeUtils.cs
- SHA384Managed.cs
- AssemblyCache.cs
- IndexingContentUnit.cs