Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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
- ServiceSecurityAuditBehavior.cs
- ContentElementAutomationPeer.cs
- PackageDocument.cs
- TrackBar.cs
- ComNativeDescriptor.cs
- storepermissionattribute.cs
- Error.cs
- ThreadStaticAttribute.cs
- SqlTrackingService.cs
- RubberbandSelector.cs
- DESCryptoServiceProvider.cs
- MailMessage.cs
- Frame.cs
- XmlnsDefinitionAttribute.cs
- BoundsDrawingContextWalker.cs
- LocalizabilityAttribute.cs
- AssemblyAttributesGoHere.cs
- ParameterToken.cs
- SpStreamWrapper.cs
- CodeSnippetTypeMember.cs
- DataGridViewTextBoxEditingControl.cs
- FactoryGenerator.cs
- ObjectReaderCompiler.cs
- QilFunction.cs
- DiffuseMaterial.cs
- XslException.cs
- Parsers.cs
- NamedPipeAppDomainProtocolHandler.cs
- IERequestCache.cs
- CompoundFileIOPermission.cs
- WebUtil.cs
- TextContainerChangedEventArgs.cs
- XsdDataContractImporter.cs
- UrlAuthorizationModule.cs
- Int32CollectionConverter.cs
- ImageDrawing.cs
- NullableFloatSumAggregationOperator.cs
- DockAndAnchorLayout.cs
- ConstructorArgumentAttribute.cs
- HwndSubclass.cs
- PageThemeBuildProvider.cs
- XappLauncher.cs
- ListViewItemMouseHoverEvent.cs
- NotSupportedException.cs
- UnitySerializationHolder.cs
- templategroup.cs
- StandardToolWindows.cs
- EnvelopedPkcs7.cs
- ExceptionHandlerDesigner.cs
- ContentValidator.cs
- DataObjectMethodAttribute.cs
- Soap12ProtocolReflector.cs
- Marshal.cs
- PersonalizableAttribute.cs
- KeyedByTypeCollection.cs
- ServicePerformanceCounters.cs
- ConfigDefinitionUpdates.cs
- WebBrowserPermission.cs
- _Connection.cs
- AuthorizationRule.cs
- IOException.cs
- PersonalizablePropertyEntry.cs
- WebPartEditVerb.cs
- AdapterUtil.cs
- DesignerSerializationOptionsAttribute.cs
- unitconverter.cs
- ToolbarAUtomationPeer.cs
- XmlSchemas.cs
- ResXResourceSet.cs
- Permission.cs
- CodeTypeOfExpression.cs
- ArithmeticException.cs
- SqlUserDefinedTypeAttribute.cs
- CornerRadiusConverter.cs
- _NetRes.cs
- ObjectConverter.cs
- CodeSnippetCompileUnit.cs
- SectionInformation.cs
- Model3D.cs
- DataGridViewCellStyleConverter.cs
- TreeViewDesigner.cs
- DataGrid.cs
- CatalogPart.cs
- ElementAction.cs
- ConstructorNeedsTagAttribute.cs
- FirstMatchCodeGroup.cs
- UnmanagedBitmapWrapper.cs
- Conditional.cs
- ItemChangedEventArgs.cs
- TemplateParser.cs
- SByteStorage.cs
- InkCanvasAutomationPeer.cs
- SystemIPInterfaceProperties.cs
- PropertyGridDesigner.cs
- ListViewUpdatedEventArgs.cs
- serverconfig.cs
- altserialization.cs
- ResourceType.cs
- assertwrapper.cs
- ExtensionQuery.cs