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
- WebResourceAttribute.cs
- SessionPageStatePersister.cs
- WmlCalendarAdapter.cs
- BasicExpandProvider.cs
- EventlogProvider.cs
- AllMembershipCondition.cs
- ZoneIdentityPermission.cs
- SetState.cs
- RelatedImageListAttribute.cs
- SoapParser.cs
- NamedPipeHostedTransportConfiguration.cs
- AppearanceEditorPart.cs
- BamlLocalizableResourceKey.cs
- DotExpr.cs
- ButtonFlatAdapter.cs
- PropertyIdentifier.cs
- SqlNamer.cs
- SequenceDesignerAccessibleObject.cs
- Icon.cs
- ServiceDeploymentInfo.cs
- FileRecordSequenceHelper.cs
- NativeMethodsOther.cs
- FlowDocumentPage.cs
- SchemaElement.cs
- ContentType.cs
- Parsers.cs
- xdrvalidator.cs
- PackageRelationship.cs
- ResourceDescriptionAttribute.cs
- PackageRelationshipSelector.cs
- FontFamilyIdentifier.cs
- CursorEditor.cs
- Margins.cs
- DictionarySurrogate.cs
- StateManagedCollection.cs
- SqlInternalConnectionSmi.cs
- OpenFileDialog.cs
- CodeTypeOfExpression.cs
- DataViewSetting.cs
- HostingEnvironmentSection.cs
- TextDecoration.cs
- DrawingVisual.cs
- DataContractSet.cs
- ToolTipAutomationPeer.cs
- CurrencyManager.cs
- XmlSchemaImporter.cs
- PermissionListSet.cs
- WebPageTraceListener.cs
- WindowsAuthenticationModule.cs
- UseAttributeSetsAction.cs
- List.cs
- GridViewSelectEventArgs.cs
- WorkflowInstanceRecord.cs
- DateTimeFormatInfoScanner.cs
- XamlClipboardData.cs
- ScriptHandlerFactory.cs
- SelectionEditingBehavior.cs
- ReliableChannelFactory.cs
- Int32Animation.cs
- COSERVERINFO.cs
- QueryTaskGroupState.cs
- TagMapInfo.cs
- KeyPressEvent.cs
- FormatConvertedBitmap.cs
- HtmlShimManager.cs
- ActivityDesignerAccessibleObject.cs
- SortedDictionary.cs
- AuthenticationException.cs
- BitmapMetadata.cs
- _OSSOCK.cs
- SerializerProvider.cs
- TextReturnReader.cs
- SizeConverter.cs
- BamlBinaryWriter.cs
- ResourceManager.cs
- ConditionValidator.cs
- Style.cs
- HttpHandlerActionCollection.cs
- HeaderedContentControl.cs
- EncryptedData.cs
- DropSourceBehavior.cs
- Point3DKeyFrameCollection.cs
- MaskedTextProvider.cs
- OptimizedTemplateContent.cs
- PropertyConverter.cs
- AdornerHitTestResult.cs
- TypeLoadException.cs
- TriggerActionCollection.cs
- TemplateControlParser.cs
- BodyWriter.cs
- DesignerProperties.cs
- Renderer.cs
- HtmlElementEventArgs.cs
- BasePattern.cs
- MLangCodePageEncoding.cs
- HtmlTitle.cs
- ActivityExecutor.cs
- XmlSerializerVersionAttribute.cs
- LookupBindingPropertiesAttribute.cs
- InputScopeAttribute.cs