Code:
/ DotNET / DotNET / 8.0 / untmp / whidbey / REDBITS / 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
}
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- OutputCacheModule.cs
- X509PeerCertificateElement.cs
- PageCatalogPart.cs
- EncoderReplacementFallback.cs
- ComponentTray.cs
- Debug.cs
- RegionInfo.cs
- SafePEFileHandle.cs
- CustomUserNameSecurityTokenAuthenticator.cs
- EditorPartChrome.cs
- NGCPageContentSerializerAsync.cs
- Int16AnimationUsingKeyFrames.cs
- Win32SafeHandles.cs
- LineServicesCallbacks.cs
- Propagator.cs
- SymmetricKey.cs
- CheckBox.cs
- PerformanceCounterLib.cs
- MultiSelectRootGridEntry.cs
- RequestCacheEntry.cs
- ParamArrayAttribute.cs
- TextEndOfParagraph.cs
- coordinatorfactory.cs
- StringUtil.cs
- BoolLiteral.cs
- RemoteWebConfigurationHost.cs
- SslSecurityTokenParameters.cs
- ConstructorExpr.cs
- LambdaCompiler.Binary.cs
- ColumnMapVisitor.cs
- SafeFindHandle.cs
- IListConverters.cs
- SubclassTypeValidator.cs
- PreviewKeyDownEventArgs.cs
- SchemaType.cs
- XmlTypeAttribute.cs
- MultiplexingFormatMapping.cs
- xmlsaver.cs
- NetTcpSectionData.cs
- FrameSecurityDescriptor.cs
- Image.cs
- EncoderExceptionFallback.cs
- DataReceivedEventArgs.cs
- SqlPersonalizationProvider.cs
- EnumerableWrapperWeakToStrong.cs
- BrowserCapabilitiesCompiler.cs
- ServiceModelEnumValidatorAttribute.cs
- PatternMatcher.cs
- QueryParameter.cs
- SignatureHelper.cs
- CharEntityEncoderFallback.cs
- XmlElementAttributes.cs
- Constraint.cs
- Blend.cs
- NegotiateStream.cs
- LambdaExpression.cs
- TogglePattern.cs
- TextTreeFixupNode.cs
- HtmlElementEventArgs.cs
- SqlDataSourceEnumerator.cs
- SemanticBasicElement.cs
- FreeFormPanel.cs
- PatternMatcher.cs
- SqlClientPermission.cs
- Int32CollectionConverter.cs
- WindowsAuthenticationModule.cs
- InvalidEnumArgumentException.cs
- diagnosticsswitches.cs
- ProtocolsConfiguration.cs
- OleDbPermission.cs
- Panel.cs
- KeyFrames.cs
- TextElementEnumerator.cs
- DetailsViewRow.cs
- PartitionedStreamMerger.cs
- BindStream.cs
- ColorPalette.cs
- TransformerConfigurationWizardBase.cs
- AssemblyAttributesGoHere.cs
- ServiceAuthorizationBehavior.cs
- followingsibling.cs
- CommandHelpers.cs
- BitmapPalette.cs
- DataBindingsDialog.cs
- LookupTables.cs
- TextStore.cs
- PaginationProgressEventArgs.cs
- PropertyManager.cs
- DataSourceControl.cs
- PerformanceCounterPermissionAttribute.cs
- ResourceDisplayNameAttribute.cs
- OpCopier.cs
- EntityViewGenerationConstants.cs
- DesignerSerializationVisibilityAttribute.cs
- ResolveCriteria11.cs
- ClipboardData.cs
- DbCommandTree.cs
- SystemIdentity.cs
- Empty.cs
- SafeProcessHandle.cs