Code:
/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / ndp / clr / src / BCL / System / Diagnostics / AssertFilter.cs / 1 / AssertFilter.cs
// ==++== // // Copyright (c) Microsoft Corporation. All rights reserved. // // ==--== namespace System.Diagnostics { using System; // A Filter is used to decide whether an assert failure // should terminate the program (or invoke the debugger). // Typically this is done by popping up a dialog & asking the user. // // The default filter brings up a simple Win32 dialog with 3 buttons. [Serializable()] abstract internal class AssertFilter { // Called when an assert fails. This should be overridden with logic which // determines whether the program should terminate or not. Typically this // is done by asking the user. // abstract public AssertFilters AssertFailure(String condition, String message, StackTrace location); } // No data, does not need to be marked with the serializable attribute internal class DefaultFilter : AssertFilter { internal DefaultFilter() { } public override AssertFilters AssertFailure(String condition, String message, StackTrace location) { return (AssertFilters) Assert.ShowDefaultAssertDialog (condition, message); } } }
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- XsltQilFactory.cs
- AnonymousIdentificationModule.cs
- UIAgentMonitorHandle.cs
- CircleEase.cs
- MenuAdapter.cs
- ObjectPropertyMapping.cs
- JsonWriterDelegator.cs
- IItemProperties.cs
- XmlIgnoreAttribute.cs
- XhtmlBasicTextBoxAdapter.cs
- XsltArgumentList.cs
- TheQuery.cs
- RegularExpressionValidator.cs
- EntitySet.cs
- KnownBoxes.cs
- XmlSortKey.cs
- ClassHandlersStore.cs
- WebConfigurationHostFileChange.cs
- RawStylusInput.cs
- TimeSpanParse.cs
- WindowsAuthenticationEventArgs.cs
- PersistenceProviderDirectory.cs
- DbSetClause.cs
- ClusterSafeNativeMethods.cs
- Schema.cs
- DelegatingConfigHost.cs
- Help.cs
- StringResourceManager.cs
- PersonalizationProviderHelper.cs
- Point.cs
- DrawingAttributesDefaultValueFactory.cs
- ReceiveActivityDesignerTheme.cs
- SQLCharsStorage.cs
- WindowsTreeView.cs
- ByteKeyFrameCollection.cs
- GeneratedContractType.cs
- UnionCodeGroup.cs
- AsnEncodedData.cs
- ScrollProperties.cs
- DateBoldEvent.cs
- _Win32.cs
- MainMenu.cs
- TabletCollection.cs
- ClientSettingsProvider.cs
- DeploymentSectionCache.cs
- CurrentChangingEventArgs.cs
- HealthMonitoringSection.cs
- DbConnectionPoolGroup.cs
- EraserBehavior.cs
- XamlPoint3DCollectionSerializer.cs
- QilStrConcat.cs
- GridPatternIdentifiers.cs
- XamlFrame.cs
- InternalsVisibleToAttribute.cs
- FreezableDefaultValueFactory.cs
- MultilineStringConverter.cs
- OleDbConnectionInternal.cs
- DataSourceXmlSerializer.cs
- SocketElement.cs
- AutomationElement.cs
- ControlEvent.cs
- NumberFormatter.cs
- InfoCardRSAOAEPKeyExchangeFormatter.cs
- DataColumnChangeEvent.cs
- SelectionHighlightInfo.cs
- InputProviderSite.cs
- FrameworkObject.cs
- StubHelpers.cs
- dtdvalidator.cs
- BinHexEncoding.cs
- Constants.cs
- MenuBindingsEditor.cs
- QilExpression.cs
- LocatorGroup.cs
- StrongName.cs
- precedingsibling.cs
- SynchronizingStream.cs
- XamlDesignerSerializationManager.cs
- DataException.cs
- OleDbMetaDataFactory.cs
- ResolveCriteria11.cs
- UnmanagedMemoryStream.cs
- GeneratedCodeAttribute.cs
- QueryableDataSource.cs
- MergablePropertyAttribute.cs
- FillRuleValidation.cs
- WebDescriptionAttribute.cs
- Opcode.cs
- DesignerCategoryAttribute.cs
- ResourceSetExpression.cs
- UIElementIsland.cs
- InkCanvasSelectionAdorner.cs
- SerializationEventsCache.cs
- StrokeNodeOperations2.cs
- Trigger.cs
- ConfigViewGenerator.cs
- AccessibleObject.cs
- RemoteWebConfigurationHostServer.cs
- HatchBrush.cs
- HttpProfileBase.cs