Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // ==++== // // 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); } } } // 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
- MessageSecurityOverMsmq.cs
- ColorAnimation.cs
- Ops.cs
- DrawToolTipEventArgs.cs
- ToolStripContentPanel.cs
- DrawingGroup.cs
- SqlRowUpdatedEvent.cs
- MissingFieldException.cs
- HtmlShimManager.cs
- SystemIPInterfaceStatistics.cs
- SafeCryptoHandles.cs
- ConstantSlot.cs
- Calendar.cs
- MailMessage.cs
- RelatedCurrencyManager.cs
- ToolStripButton.cs
- FlowDecisionDesigner.xaml.cs
- MenuItem.cs
- MatrixStack.cs
- XslVisitor.cs
- XmlnsCache.cs
- PenLineCapValidation.cs
- RedirectionProxy.cs
- MenuItemCollection.cs
- PageCache.cs
- TTSEvent.cs
- SQLBinary.cs
- DesignerResources.cs
- StringFunctions.cs
- StrongNameMembershipCondition.cs
- ProgressBarAutomationPeer.cs
- SupportsPreviewControlAttribute.cs
- InheritanceUI.cs
- JsonReaderWriterFactory.cs
- CellRelation.cs
- _HeaderInfoTable.cs
- QilStrConcat.cs
- OracleColumn.cs
- DecoderExceptionFallback.cs
- XPathItem.cs
- DataGridViewRowHeaderCell.cs
- LazyTextWriterCreator.cs
- SemanticAnalyzer.cs
- CultureSpecificStringDictionary.cs
- ContentElementAutomationPeer.cs
- ImageBrush.cs
- Misc.cs
- DependencyPropertyConverter.cs
- SqlException.cs
- ArrayListCollectionBase.cs
- BypassElement.cs
- StatusBarPanelClickEvent.cs
- SqlClientWrapperSmiStream.cs
- TdsEnums.cs
- SchemaNotation.cs
- FullTextBreakpoint.cs
- OptimisticConcurrencyException.cs
- PointLight.cs
- EmptyQuery.cs
- SafeCloseHandleCritical.cs
- SqlComparer.cs
- PolyBezierSegment.cs
- LongValidator.cs
- IgnoreFileBuildProvider.cs
- followingquery.cs
- AmbientLight.cs
- translator.cs
- CompilationLock.cs
- TriggerBase.cs
- MsmqTransportReceiveParameters.cs
- TagPrefixAttribute.cs
- LookupBindingPropertiesAttribute.cs
- SecureUICommand.cs
- DigitShape.cs
- DynamicRouteExpression.cs
- WebPartsPersonalization.cs
- FormViewModeEventArgs.cs
- XamlFxTrace.cs
- SafeCryptContextHandle.cs
- MediaScriptCommandRoutedEventArgs.cs
- AspCompat.cs
- SQLSingleStorage.cs
- FtpWebRequest.cs
- PresentationTraceSources.cs
- Property.cs
- Reference.cs
- BaseCodePageEncoding.cs
- SecurityPolicySection.cs
- KeyManager.cs
- AsymmetricAlgorithm.cs
- ObjectDataSourceChooseMethodsPanel.cs
- StatusBarPanel.cs
- Rotation3DAnimation.cs
- SafeRightsManagementPubHandle.cs
- LinearKeyFrames.cs
- GC.cs
- MethodBuilderInstantiation.cs
- GPStream.cs
- StickyNoteHelper.cs
- HttpContext.cs