Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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
- EnterpriseServicesHelper.cs
- PackageRelationshipCollection.cs
- EngineSiteSapi.cs
- ActivationArguments.cs
- BitmapEffectGroup.cs
- XmlWellformedWriter.cs
- XhtmlBasicTextViewAdapter.cs
- AssertSection.cs
- serverconfig.cs
- SqlFunctionAttribute.cs
- AdCreatedEventArgs.cs
- EdmPropertyAttribute.cs
- OperationResponse.cs
- XmlSchemaIdentityConstraint.cs
- ByteFacetDescriptionElement.cs
- ServiceModelInstallComponent.cs
- TextPointer.cs
- RefreshResponseInfo.cs
- MessageSmuggler.cs
- Executor.cs
- HttpGetServerProtocol.cs
- FastPropertyAccessor.cs
- AnnotationComponentManager.cs
- JsonFormatGeneratorStatics.cs
- AspNetHostingPermission.cs
- X509Certificate.cs
- NumericPagerField.cs
- WebPartCatalogCloseVerb.cs
- EntityDataSourceReferenceGroup.cs
- GradientStop.cs
- FileChangesMonitor.cs
- ErrorsHelper.cs
- OracleString.cs
- MessageDecoder.cs
- ReadOnlyDataSourceView.cs
- _NetRes.cs
- odbcmetadatacollectionnames.cs
- SQLByteStorage.cs
- RenderDataDrawingContext.cs
- TraceEventCache.cs
- PropertyGridCommands.cs
- NativeRightsManagementAPIsStructures.cs
- Drawing.cs
- RegistryPermission.cs
- StreamingContext.cs
- ArrayHelper.cs
- IsolationInterop.cs
- QilReplaceVisitor.cs
- CorePropertiesFilter.cs
- ImageBrush.cs
- XmlStringTable.cs
- OneWayBindingElementImporter.cs
- MetadataUtilsSmi.cs
- TimelineCollection.cs
- FolderBrowserDialog.cs
- StyleSheetDesigner.cs
- EntityDataSourceEntitySetNameItem.cs
- Tag.cs
- XslAstAnalyzer.cs
- CryptoApi.cs
- DesignerActionItemCollection.cs
- DocumentPageTextView.cs
- OutputBuffer.cs
- WebPartCatalogCloseVerb.cs
- DataGridViewRowCancelEventArgs.cs
- AlternateView.cs
- EventHandlersStore.cs
- CheckBox.cs
- DataSourceControl.cs
- LineInfo.cs
- CodeChecksumPragma.cs
- COM2TypeInfoProcessor.cs
- EmptyEnumerator.cs
- xmlsaver.cs
- SoundPlayerAction.cs
- DbParameterCollection.cs
- DataGridViewCheckBoxColumn.cs
- SafeNativeMethods.cs
- PopupEventArgs.cs
- Transform.cs
- diagnosticsswitches.cs
- PathData.cs
- DataTableCollection.cs
- wgx_commands.cs
- SqlClientMetaDataCollectionNames.cs
- TableLayoutRowStyleCollection.cs
- BulletedList.cs
- XmlCharType.cs
- DetailsViewRow.cs
- ExpandedWrapper.cs
- ProfileSettings.cs
- TextPattern.cs
- HtmlEmptyTagControlBuilder.cs
- BufferedGraphicsContext.cs
- WebPartConnectionsConnectVerb.cs
- ResourcePool.cs
- PatternMatcher.cs
- HttpStreamMessage.cs
- WorkflowElementDialog.cs
- DataRowChangeEvent.cs