Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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 } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // ==++== // // 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 } // File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- ConnectionConsumerAttribute.cs
- NestPullup.cs
- StringHelper.cs
- LazyLoadBehavior.cs
- BindingContext.cs
- OciHandle.cs
- PeerEndPoint.cs
- NodeLabelEditEvent.cs
- RectangleHotSpot.cs
- CompositionCommandSet.cs
- Attachment.cs
- ClrPerspective.cs
- NativeCppClassAttribute.cs
- WebUtil.cs
- COM2ComponentEditor.cs
- DocumentDesigner.cs
- LayoutEditorPart.cs
- SchemaHelper.cs
- GenericRootAutomationPeer.cs
- MetafileHeader.cs
- NullExtension.cs
- WinFormsSecurity.cs
- EntityDataSourceViewSchema.cs
- XmlDomTextWriter.cs
- UnsafeNativeMethods.cs
- Clause.cs
- PreProcessor.cs
- CompressedStack.cs
- WindowsToolbarAsMenu.cs
- FormViewUpdatedEventArgs.cs
- CustomActivityDesigner.cs
- UIPropertyMetadata.cs
- ComponentGlyph.cs
- XamlBrushSerializer.cs
- InternalResources.cs
- TargetControlTypeAttribute.cs
- SBCSCodePageEncoding.cs
- CodeConditionStatement.cs
- ModifiableIteratorCollection.cs
- manifestimages.cs
- ScrollEventArgs.cs
- ObjectListFieldCollection.cs
- ListViewAutomationPeer.cs
- MaskInputRejectedEventArgs.cs
- HandledEventArgs.cs
- DynamicDataRoute.cs
- RoleManagerSection.cs
- RectAnimationBase.cs
- GridViewColumnHeader.cs
- MenuCommand.cs
- XsltQilFactory.cs
- MetadataArtifactLoader.cs
- SecurityHelper.cs
- DataTrigger.cs
- InfoCardArgumentException.cs
- PresentationTraceSources.cs
- ArrangedElementCollection.cs
- WebServiceParameterData.cs
- TransformerInfoCollection.cs
- CodeArrayIndexerExpression.cs
- SwitchElementsCollection.cs
- PrintingPermission.cs
- EncodingInfo.cs
- WsatEtwTraceListener.cs
- DataGridCellClipboardEventArgs.cs
- GrammarBuilderBase.cs
- COM2Enum.cs
- BamlCollectionHolder.cs
- UriScheme.cs
- EllipseGeometry.cs
- StringWriter.cs
- CanExecuteRoutedEventArgs.cs
- ColorConvertedBitmapExtension.cs
- XmlSchemaCompilationSettings.cs
- RequestSecurityTokenResponseCollection.cs
- PassportAuthenticationModule.cs
- DataGridViewColumnStateChangedEventArgs.cs
- CharEnumerator.cs
- PageTheme.cs
- FormsAuthentication.cs
- SemaphoreSecurity.cs
- XDRSchema.cs
- ExecutionTracker.cs
- TrackBar.cs
- PrintEvent.cs
- StrongTypingException.cs
- TemplateAction.cs
- BatchParser.cs
- FormViewUpdatedEventArgs.cs
- SqlWebEventProvider.cs
- SmtpFailedRecipientsException.cs
- WebExceptionStatus.cs
- CompilerParameters.cs
- ConnectionConsumerAttribute.cs
- DataRowComparer.cs
- _CommandStream.cs
- XPathNodePointer.cs
- OneToOneMappingSerializer.cs
- RuleValidation.cs
- WebPartChrome.cs