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
- BamlStream.cs
- RelationshipEndMember.cs
- CoreSwitches.cs
- DetailsViewInsertEventArgs.cs
- OrderingInfo.cs
- Inline.cs
- QilTernary.cs
- AddInController.cs
- TransformConverter.cs
- DataProtection.cs
- HttpRawResponse.cs
- Command.cs
- ItemChangedEventArgs.cs
- PlaceHolder.cs
- DropDownButton.cs
- RadioButtonList.cs
- EmptyEnumerable.cs
- TextPointer.cs
- externdll.cs
- ProcessHostFactoryHelper.cs
- Label.cs
- PrintController.cs
- DisplayToken.cs
- LineBreakRecord.cs
- FixedTextPointer.cs
- WebControlsSection.cs
- ReachObjectContext.cs
- ImageCodecInfo.cs
- DiscoveryDocumentReference.cs
- TextPointer.cs
- OpCellTreeNode.cs
- SizeFConverter.cs
- VectorValueSerializer.cs
- BindingExpressionUncommonField.cs
- EventHandlerService.cs
- UpDownBaseDesigner.cs
- SymbolEqualComparer.cs
- Util.cs
- InfoCardRSAOAEPKeyExchangeDeformatter.cs
- NullRuntimeConfig.cs
- SimpleHandlerBuildProvider.cs
- BuildProvider.cs
- ProfileProvider.cs
- DaylightTime.cs
- FilterQuery.cs
- OleDbEnumerator.cs
- GB18030Encoding.cs
- ProjectionNode.cs
- SQLUtility.cs
- LinqExpressionNormalizer.cs
- HtmlInputRadioButton.cs
- HtmlObjectListAdapter.cs
- FacetValues.cs
- XmlNamespaceMapping.cs
- ThemeConfigurationDialog.cs
- OdbcPermission.cs
- CqlLexerHelpers.cs
- GeneratedView.cs
- RouteUrlExpressionBuilder.cs
- ErrorHandler.cs
- InteropEnvironment.cs
- Adorner.cs
- CodeArrayIndexerExpression.cs
- WindowPatternIdentifiers.cs
- PropertyStore.cs
- HttpCapabilitiesBase.cs
- Vector3DAnimationUsingKeyFrames.cs
- ACE.cs
- NonPrimarySelectionGlyph.cs
- RenderingEventArgs.cs
- sqlinternaltransaction.cs
- DuplicateDetector.cs
- ItemContainerGenerator.cs
- TypeDependencyAttribute.cs
- PixelFormats.cs
- StreamWithDictionary.cs
- ImageAttributes.cs
- PieceNameHelper.cs
- AssemblyBuilder.cs
- IODescriptionAttribute.cs
- SqlOuterApplyReducer.cs
- ByeMessageApril2005.cs
- PolyQuadraticBezierSegment.cs
- DirectionalLight.cs
- SrgsElementFactoryCompiler.cs
- ProvidersHelper.cs
- HttpProfileGroupBase.cs
- XDeferredAxisSource.cs
- XmlSchemaDocumentation.cs
- ZipIOCentralDirectoryFileHeader.cs
- PassportAuthenticationModule.cs
- SimpleRecyclingCache.cs
- unsafeIndexingFilterStream.cs
- CompoundFileDeflateTransform.cs
- ChannelSinkStacks.cs
- SectionInput.cs
- Misc.cs
- Errors.cs
- RectangleHotSpot.cs
- DataGridPageChangedEventArgs.cs