Code:
/ FX-1434 / FX-1434 / 1.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
- CommandBindingCollection.cs
- GAC.cs
- X509IssuerSerialKeyIdentifierClause.cs
- DrawingGroup.cs
- SqlNodeTypeOperators.cs
- OleCmdHelper.cs
- CutCopyPasteHelper.cs
- streamingZipPartStream.cs
- SchemaType.cs
- BamlResourceSerializer.cs
- CurrencyWrapper.cs
- HiddenField.cs
- WrappedReader.cs
- datacache.cs
- SectionInformation.cs
- HttpHandlerAction.cs
- HostingEnvironmentSection.cs
- OpenFileDialog.cs
- OracleConnectionString.cs
- FormViewModeEventArgs.cs
- MonthChangedEventArgs.cs
- SqlDataSourceCache.cs
- NamedPipeTransportManager.cs
- MetaModel.cs
- StateChangeEvent.cs
- DetailsViewRowCollection.cs
- PanelDesigner.cs
- DATA_BLOB.cs
- TableLayout.cs
- ReservationCollection.cs
- DoubleStorage.cs
- rsa.cs
- NonSerializedAttribute.cs
- EncryptedXml.cs
- PaintValueEventArgs.cs
- CompatibleComparer.cs
- TypefaceMap.cs
- SizeChangedEventArgs.cs
- WebColorConverter.cs
- WindowAutomationPeer.cs
- XPathCompileException.cs
- XPathSelfQuery.cs
- PluralizationServiceUtil.cs
- UrlMappingsModule.cs
- COM2ComponentEditor.cs
- EventArgs.cs
- XPathNavigatorReader.cs
- SkinBuilder.cs
- TryExpression.cs
- ImageAnimator.cs
- GAC.cs
- DataGridViewLinkCell.cs
- ValidationUtility.cs
- SmiContext.cs
- RealizationDrawingContextWalker.cs
- FeatureAttribute.cs
- TemplateNameScope.cs
- AnyReturnReader.cs
- HandleCollector.cs
- Expander.cs
- CodeRemoveEventStatement.cs
- ProviderConnectionPointCollection.cs
- PageHandlerFactory.cs
- FreeFormDesigner.cs
- SafeLocalMemHandle.cs
- CompareValidator.cs
- UnsignedPublishLicense.cs
- ObfuscationAttribute.cs
- PreProcessor.cs
- PathData.cs
- RectangleF.cs
- ValidationErrorCollection.cs
- KeyGesture.cs
- SystemColors.cs
- ToolStripSplitStackLayout.cs
- SqlMethodCallConverter.cs
- TableCell.cs
- MenuTracker.cs
- WindowsListBox.cs
- InputBindingCollection.cs
- Operand.cs
- ReadOnlyNameValueCollection.cs
- DictationGrammar.cs
- NetMsmqSecurityMode.cs
- ZipIOFileItemStream.cs
- RenderData.cs
- RunWorkerCompletedEventArgs.cs
- QueryInterceptorAttribute.cs
- SwitchElementsCollection.cs
- TextEndOfSegment.cs
- CellRelation.cs
- CodeGeneratorAttribute.cs
- HttpListenerContext.cs
- QuestionEventArgs.cs
- OutputCacheSection.cs
- TemplateControlParser.cs
- IdleTimeoutMonitor.cs
- ConditionValidator.cs
- OperationCanceledException.cs
- RC2CryptoServiceProvider.cs