Code:
/ DotNET / DotNET / 8.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
- WindowsScrollBar.cs
- MultipartContentParser.cs
- MultiView.cs
- Msec.cs
- FaultContext.cs
- columnmapkeybuilder.cs
- SqlNodeAnnotations.cs
- ListViewHitTestInfo.cs
- Underline.cs
- Char.cs
- LastQueryOperator.cs
- SynchronizationContext.cs
- FixedPage.cs
- AliasedExpr.cs
- OrderedHashRepartitionStream.cs
- ContentDisposition.cs
- HistoryEventArgs.cs
- LabelAutomationPeer.cs
- TemplateContent.cs
- XsltFunctions.cs
- RelatedView.cs
- MinMaxParagraphWidth.cs
- EventsTab.cs
- SecurityPermission.cs
- NetworkInformationException.cs
- ListDictionary.cs
- HttpCacheVary.cs
- SelectionHighlightInfo.cs
- SettingsPropertyValueCollection.cs
- DocumentDesigner.cs
- QueryHandler.cs
- SerializationEventsCache.cs
- GlyphTypeface.cs
- BitVector32.cs
- MdImport.cs
- ArrayWithOffset.cs
- ExpressionEditorSheet.cs
- ForeignConstraint.cs
- SBCSCodePageEncoding.cs
- StorageAssociationSetMapping.cs
- CodeCompileUnit.cs
- ParameterCollectionEditorForm.cs
- Char.cs
- Rule.cs
- CustomPopupPlacement.cs
- SourceElementsCollection.cs
- DocumentApplicationDocumentViewer.cs
- EncodingTable.cs
- TabControlCancelEvent.cs
- TimerElapsedEvenArgs.cs
- Page.cs
- ColumnMapCopier.cs
- RelatedEnd.cs
- CheckBox.cs
- ConfigXmlWhitespace.cs
- CompositionTarget.cs
- HtmlElementErrorEventArgs.cs
- NeutralResourcesLanguageAttribute.cs
- SafeThemeHandle.cs
- MemberPathMap.cs
- DataGrid.cs
- Point3D.cs
- TextServicesCompartmentContext.cs
- QilVisitor.cs
- DependencyObjectProvider.cs
- Type.cs
- WebColorConverter.cs
- ToolStripControlHost.cs
- StrokeFIndices.cs
- MarshalByRefObject.cs
- BoolExpression.cs
- Token.cs
- GlobalItem.cs
- SapiGrammar.cs
- TagNameToTypeMapper.cs
- GeneralTransform3DCollection.cs
- XmlWriterSettings.cs
- PersistenceTypeAttribute.cs
- FlagsAttribute.cs
- SingleTagSectionHandler.cs
- GenericEnumerator.cs
- SpecialNameAttribute.cs
- TaskFactory.cs
- TextAnchor.cs
- objectresult_tresulttype.cs
- ColorIndependentAnimationStorage.cs
- NavigateUrlConverter.cs
- CatalogZoneAutoFormat.cs
- ObjectTag.cs
- Sentence.cs
- StringValidatorAttribute.cs
- FontFamilyConverter.cs
- DataGridViewTextBoxCell.cs
- DispatcherHooks.cs
- EventArgs.cs
- ScrollableControlDesigner.cs
- ManualResetEventSlim.cs
- OutputWindow.cs
- TypeDescriptionProvider.cs
- LogWriteRestartAreaAsyncResult.cs