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
- EncryptedKeyIdentifierClause.cs
- SizeChangedEventArgs.cs
- ToolStripTemplateNode.cs
- CompiledRegexRunner.cs
- NamedPipeTransportElement.cs
- TextMetrics.cs
- DateTimeHelper.cs
- Int64Animation.cs
- FramingFormat.cs
- PackageRelationship.cs
- WebSysDescriptionAttribute.cs
- KeyboardDevice.cs
- ServiceHttpHandlerFactory.cs
- ByteStack.cs
- DrawingContextWalker.cs
- _BufferOffsetSize.cs
- LambdaCompiler.Unary.cs
- Compiler.cs
- ToolboxItemCollection.cs
- UrlPath.cs
- GenericTypeParameterBuilder.cs
- _Events.cs
- DesignerActionItem.cs
- MarkerProperties.cs
- TranslateTransform.cs
- BaseDataListPage.cs
- QuaternionRotation3D.cs
- WeakReadOnlyCollection.cs
- BindingExpression.cs
- DbParameterCollectionHelper.cs
- StylusEventArgs.cs
- HttpEncoderUtility.cs
- EntityContainerEmitter.cs
- TableLayoutPanelCellPosition.cs
- HelpKeywordAttribute.cs
- HttpCacheVaryByContentEncodings.cs
- BaseTemplateBuildProvider.cs
- EmbossBitmapEffect.cs
- SafeLibraryHandle.cs
- WsdlServiceChannelBuilder.cs
- RuleInfoComparer.cs
- XmlQueryRuntime.cs
- sqlstateclientmanager.cs
- HtmlContainerControl.cs
- ToolBar.cs
- CodeCatchClauseCollection.cs
- CompositeScriptReference.cs
- SafeCryptContextHandle.cs
- XmlRootAttribute.cs
- PointLight.cs
- SqlNodeAnnotations.cs
- TextElementCollectionHelper.cs
- WebRequest.cs
- RenderingEventArgs.cs
- RawKeyboardInputReport.cs
- VirtualizingStackPanel.cs
- CollaborationHelperFunctions.cs
- WebPartVerb.cs
- AppDomainAttributes.cs
- SafeFileHandle.cs
- SqlConnectionHelper.cs
- ReadOnlyDictionary.cs
- ColumnHeaderConverter.cs
- ObjectQuery.cs
- ItemDragEvent.cs
- CompModSwitches.cs
- OracleTransaction.cs
- RuleRefElement.cs
- GridViewHeaderRowPresenter.cs
- BuildProviderAppliesToAttribute.cs
- ArrangedElement.cs
- SelectorItemAutomationPeer.cs
- ActivationArguments.cs
- PersistenceException.cs
- XmlDownloadManager.cs
- SmiTypedGetterSetter.cs
- AdRotator.cs
- _NTAuthentication.cs
- TreeNodeStyle.cs
- WindowsSolidBrush.cs
- NamespaceMapping.cs
- OleDbCommand.cs
- DoubleIndependentAnimationStorage.cs
- GridLength.cs
- SqlCacheDependencyDatabaseCollection.cs
- DataReceivedEventArgs.cs
- XmlRawWriterWrapper.cs
- TreeViewImageIndexConverter.cs
- RemoteArgument.cs
- WindowsToolbarAsMenu.cs
- FontDriver.cs
- SafeArrayRankMismatchException.cs
- WebReference.cs
- IISUnsafeMethods.cs
- TrustVersion.cs
- NativeMethods.cs
- RowParagraph.cs
- DoubleCollectionValueSerializer.cs
- ZipFileInfo.cs
- TreeNodeStyleCollection.cs