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
- Int64Converter.cs
- CodeRegionDirective.cs
- ProgressPage.cs
- ObjectItemCollectionAssemblyCacheEntry.cs
- SafeProcessHandle.cs
- Timer.cs
- TypographyProperties.cs
- IISMapPath.cs
- PrintPreviewDialog.cs
- DependencySource.cs
- InertiaRotationBehavior.cs
- WorkflowLayouts.cs
- ConnectionProviderAttribute.cs
- Scalars.cs
- LogoValidationException.cs
- JoinSymbol.cs
- StreamMarshaler.cs
- PiiTraceSource.cs
- StaticFileHandler.cs
- TrackingStringDictionary.cs
- IUnknownConstantAttribute.cs
- NamedObject.cs
- ContentControl.cs
- DataGridViewRowPrePaintEventArgs.cs
- StatusBarAutomationPeer.cs
- AmbientLight.cs
- PrimitiveCodeDomSerializer.cs
- ColorInterpolationModeValidation.cs
- SHA384Cng.cs
- SymbolDocumentInfo.cs
- ServiceRoute.cs
- OleDbReferenceCollection.cs
- SchemaEntity.cs
- ZipArchive.cs
- SymDocumentType.cs
- Faults.cs
- AuthenticationConfig.cs
- ContainerFilterService.cs
- KeyConstraint.cs
- ViewValidator.cs
- tibetanshape.cs
- ReferenceSchema.cs
- XamlStyleSerializer.cs
- ControlValuePropertyAttribute.cs
- MouseButtonEventArgs.cs
- SchemaMapping.cs
- RegularExpressionValidator.cs
- SpeechEvent.cs
- CodeAttributeDeclaration.cs
- StrokeCollectionDefaultValueFactory.cs
- SqlConnection.cs
- SingleConverter.cs
- HiddenFieldPageStatePersister.cs
- Dispatcher.cs
- CrossSiteScriptingValidation.cs
- DiagnosticsConfigurationHandler.cs
- SectionXmlInfo.cs
- LocalizationComments.cs
- AuthenticatedStream.cs
- EnumMember.cs
- XmlSchemas.cs
- X509ChainPolicy.cs
- JoinElimination.cs
- DrawingAttributesDefaultValueFactory.cs
- GlobalizationAssembly.cs
- CriticalFinalizerObject.cs
- DynamicDataRoute.cs
- DriveInfo.cs
- SiteMembershipCondition.cs
- CategoryGridEntry.cs
- SmiConnection.cs
- ThreadStateException.cs
- UInt64Converter.cs
- CacheSection.cs
- VScrollProperties.cs
- EntityDesignerDataSourceView.cs
- BaseCollection.cs
- WindowCollection.cs
- InputMethodStateTypeInfo.cs
- DodSequenceMerge.cs
- Int64Animation.cs
- MessageSecurityException.cs
- DataGridViewAccessibleObject.cs
- IQueryable.cs
- StickyNoteContentControl.cs
- AssociationEndMember.cs
- _AutoWebProxyScriptWrapper.cs
- RoleService.cs
- RootBuilder.cs
- ChildrenQuery.cs
- DeploymentSection.cs
- WpfXamlType.cs
- MobileControlBuilder.cs
- MatrixTransform3D.cs
- ScrollChangedEventArgs.cs
- ContextStaticAttribute.cs
- DropDownList.cs
- SqlHelper.cs
- DbDeleteCommandTree.cs
- FileFormatException.cs