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
- UserInitiatedNavigationPermission.cs
- DataRowIndexBuffer.cs
- BookmarkEventArgs.cs
- LocatorBase.cs
- AtomServiceDocumentSerializer.cs
- RectAnimationClockResource.cs
- QuaternionAnimationBase.cs
- LinqToSqlWrapper.cs
- PaperSize.cs
- TimeSpan.cs
- BooleanKeyFrameCollection.cs
- UserPreferenceChangedEventArgs.cs
- XmlNodeList.cs
- SqlCommand.cs
- WrapperEqualityComparer.cs
- XmlEntityReference.cs
- CodeVariableReferenceExpression.cs
- AuthenticationModulesSection.cs
- wgx_render.cs
- ReadWriteSpinLock.cs
- ScriptServiceAttribute.cs
- PackageRelationshipCollection.cs
- SkipStoryboardToFill.cs
- ElementFactory.cs
- DoWhile.cs
- SmiRecordBuffer.cs
- DataControlReferenceCollection.cs
- _BaseOverlappedAsyncResult.cs
- PermissionAttributes.cs
- MethodRental.cs
- DataSetUtil.cs
- SubMenuStyleCollectionEditor.cs
- RenderData.cs
- BrowserCapabilitiesFactory.cs
- ObjectItemConventionAssemblyLoader.cs
- CollectionEditor.cs
- ListViewDeletedEventArgs.cs
- Conditional.cs
- ListParaClient.cs
- contentDescriptor.cs
- ChooseAction.cs
- UnsafeNativeMethods.cs
- RuleSetDialog.cs
- UnaryNode.cs
- SafeThemeHandle.cs
- MsmqIntegrationBindingCollectionElement.cs
- InvalidDataContractException.cs
- CompilerTypeWithParams.cs
- CodeAccessPermission.cs
- GZipStream.cs
- RadioButton.cs
- EncryptedKeyIdentifierClause.cs
- cookie.cs
- WinHttpWebProxyFinder.cs
- StrokeCollection2.cs
- DelegateOutArgument.cs
- DelegateHelpers.cs
- EntityDataSourceWrapper.cs
- DataTableReader.cs
- KeyConstraint.cs
- AsyncPostBackErrorEventArgs.cs
- EntityModelBuildProvider.cs
- LayoutDump.cs
- PostBackOptions.cs
- PrivateFontCollection.cs
- SiteMapDataSource.cs
- ClaimTypes.cs
- RequestContext.cs
- StretchValidation.cs
- ButtonStandardAdapter.cs
- StringStorage.cs
- InputMethodStateTypeInfo.cs
- EditorZoneAutoFormat.cs
- UnmanagedMemoryStream.cs
- RangeExpression.cs
- WebPartDescription.cs
- AdRotatorDesigner.cs
- DataGridViewRowsAddedEventArgs.cs
- ConfigXmlText.cs
- StatusBar.cs
- StrongName.cs
- ProfileGroupSettingsCollection.cs
- DataBoundControlAdapter.cs
- ConfigurationConverterBase.cs
- basecomparevalidator.cs
- entityreference_tresulttype.cs
- CodeMethodInvokeExpression.cs
- ToolStripPanelDesigner.cs
- ResourceReferenceKeyNotFoundException.cs
- CodeObject.cs
- CodeStatementCollection.cs
- ContentHostHelper.cs
- ObjectDataSourceView.cs
- Visual3D.cs
- SuppressIldasmAttribute.cs
- MdiWindowListItemConverter.cs
- EnumValAlphaComparer.cs
- WindowsRegion.cs
- Converter.cs
- FormatterServices.cs