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
- _ListenerAsyncResult.cs
- DataGridViewBindingCompleteEventArgs.cs
- TableLayoutColumnStyleCollection.cs
- UntrustedRecipientException.cs
- HtmlEmptyTagControlBuilder.cs
- PropertyEmitterBase.cs
- Drawing.cs
- Selector.cs
- EventManager.cs
- safelink.cs
- TextStore.cs
- FrameworkEventSource.cs
- ChannelServices.cs
- CompressedStack.cs
- MutexSecurity.cs
- RulePatternOps.cs
- CodeGenerationManager.cs
- CAGDesigner.cs
- FileLoadException.cs
- PassportAuthenticationModule.cs
- CalendarAutoFormat.cs
- Expander.cs
- ComponentDispatcher.cs
- FontInfo.cs
- CompoundFileDeflateTransform.cs
- UriGenerator.cs
- XmlSchemaAnyAttribute.cs
- ShowExpandedMultiValueConverter.cs
- Matrix.cs
- ReflectEventDescriptor.cs
- RayHitTestParameters.cs
- TokenBasedSetEnumerator.cs
- X509ChainPolicy.cs
- InitializerFacet.cs
- DataGridViewTextBoxCell.cs
- BinaryReader.cs
- HandleCollector.cs
- AnnotationComponentManager.cs
- BitmapEffectState.cs
- CLSCompliantAttribute.cs
- DataObjectAttribute.cs
- CodeCatchClause.cs
- ItemDragEvent.cs
- XmlAnyElementAttribute.cs
- ValidationEventArgs.cs
- RelOps.cs
- JumpPath.cs
- AnnotationResourceCollection.cs
- SchemaRegistration.cs
- CompressionTransform.cs
- Validator.cs
- HwndSource.cs
- OperationDescriptionCollection.cs
- SHA512Managed.cs
- SequentialOutput.cs
- HttpWebResponse.cs
- TabRenderer.cs
- SetIndexBinder.cs
- EditorAttribute.cs
- PasswordDeriveBytes.cs
- HitTestParameters.cs
- DynamicDataRouteHandler.cs
- CatalogZone.cs
- MetadataCache.cs
- PagedDataSource.cs
- XmlQueryOutput.cs
- DataRecord.cs
- ProtocolViolationException.cs
- CounterCreationData.cs
- StsCommunicationException.cs
- AuthenticationManager.cs
- RNGCryptoServiceProvider.cs
- VSWCFServiceContractGenerator.cs
- ItemCollection.cs
- Int32CAMarshaler.cs
- SmtpCommands.cs
- TreeNodeBindingCollection.cs
- SmtpSpecifiedPickupDirectoryElement.cs
- ValueOfAction.cs
- IdentityHolder.cs
- MetadataItemEmitter.cs
- Header.cs
- EllipseGeometry.cs
- ToolStripProgressBar.cs
- FlowPosition.cs
- HttpHandlersSection.cs
- ValidationResult.cs
- Literal.cs
- FlowDocumentView.cs
- DynamicEntity.cs
- BulletedList.cs
- DeflateEmulationStream.cs
- SQLDouble.cs
- IFormattable.cs
- TdsParameterSetter.cs
- Shared.cs
- FileDetails.cs
- filewebrequest.cs
- CapacityStreamGeometryContext.cs
- Literal.cs