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
- PngBitmapEncoder.cs
- ObjectMemberMapping.cs
- XmlDocumentType.cs
- CanExecuteRoutedEventArgs.cs
- TransformerTypeCollection.cs
- HttpCachePolicy.cs
- HttpCapabilitiesSectionHandler.cs
- AsyncPostBackTrigger.cs
- OLEDB_Util.cs
- GridItemPattern.cs
- ListViewDataItem.cs
- ControlPropertyNameConverter.cs
- Socket.cs
- DayRenderEvent.cs
- StringFunctions.cs
- Debugger.cs
- ImageButton.cs
- IHttpResponseInternal.cs
- BamlMapTable.cs
- SupportingTokenSpecification.cs
- ClientConvert.cs
- HttpModuleCollection.cs
- ProfileGroupSettingsCollection.cs
- ParseNumbers.cs
- ObjectMemberMapping.cs
- WizardForm.cs
- CommonDialog.cs
- CodeComment.cs
- QilGeneratorEnv.cs
- PathTooLongException.cs
- ValidationError.cs
- ImageEditor.cs
- SequenceNumber.cs
- CompoundFileDeflateTransform.cs
- GridViewEditEventArgs.cs
- ScriptManager.cs
- _ProxyRegBlob.cs
- ScriptHandlerFactory.cs
- CharacterMetrics.cs
- ChameleonKey.cs
- CdpEqualityComparer.cs
- PipelineModuleStepContainer.cs
- ListControlConvertEventArgs.cs
- HTMLTagNameToTypeMapper.cs
- StyleModeStack.cs
- WebPartDeleteVerb.cs
- TraceContextEventArgs.cs
- NoResizeSelectionBorderGlyph.cs
- Region.cs
- DivideByZeroException.cs
- OracleEncoding.cs
- DetailsViewUpdateEventArgs.cs
- odbcmetadatacollectionnames.cs
- PropertyBuilder.cs
- RectangleGeometry.cs
- CorrelationTokenInvalidatedHandler.cs
- TypedReference.cs
- OracleCommandSet.cs
- BaseProcessor.cs
- CopyNodeSetAction.cs
- XmlSchemaNotation.cs
- QueryContinueDragEventArgs.cs
- SharedPersonalizationStateInfo.cs
- DiscoveryMessageSequenceCD1.cs
- TextTreeObjectNode.cs
- XmlSchemaValidator.cs
- ImageInfo.cs
- SchemaImporterExtension.cs
- OutputCacheModule.cs
- HiddenField.cs
- MemoryMappedViewAccessor.cs
- CodeAttributeDeclaration.cs
- NamespaceInfo.cs
- TypeConverterMarkupExtension.cs
- WeakEventManager.cs
- ParallelRangeManager.cs
- RemoteWebConfigurationHostStream.cs
- IfJoinedCondition.cs
- SqlDataReaderSmi.cs
- MetadataArtifactLoaderResource.cs
- ContentWrapperAttribute.cs
- RC2.cs
- SudsParser.cs
- FtpRequestCacheValidator.cs
- UICuesEvent.cs
- Membership.cs
- AsymmetricCryptoHandle.cs
- EllipseGeometry.cs
- WebPartCollection.cs
- CodeAttributeDeclaration.cs
- MemberMaps.cs
- TreeNodeBinding.cs
- DbException.cs
- ListCollectionView.cs
- FixedSOMPageConstructor.cs
- WebColorConverter.cs
- NavigateUrlConverter.cs
- OracleLob.cs
- ReflectPropertyDescriptor.cs
- CodeTryCatchFinallyStatement.cs