Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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
- QuaternionAnimationUsingKeyFrames.cs
- InkCanvas.cs
- InputLangChangeRequestEvent.cs
- ValidatingPropertiesEventArgs.cs
- Grant.cs
- SqlProviderManifest.cs
- HttpTransportElement.cs
- AxImporter.cs
- ExtractedStateEntry.cs
- Ray3DHitTestResult.cs
- FileResponseElement.cs
- RegexGroupCollection.cs
- Executor.cs
- ExpandSegmentCollection.cs
- HwndKeyboardInputProvider.cs
- HtmlInputRadioButton.cs
- MenuTracker.cs
- InitializationEventAttribute.cs
- ToolboxItemAttribute.cs
- MD5.cs
- AuthenticateEventArgs.cs
- FileDialog.cs
- SafeNativeMethods.cs
- CharConverter.cs
- RangeValuePatternIdentifiers.cs
- Page.cs
- WeakEventTable.cs
- ArrangedElementCollection.cs
- AddingNewEventArgs.cs
- Missing.cs
- FlowDocumentPage.cs
- COM2ExtendedTypeConverter.cs
- TrackingSection.cs
- Stylus.cs
- XNodeNavigator.cs
- BreakSafeBase.cs
- Size.cs
- ToolStripDropDownClosingEventArgs.cs
- Roles.cs
- TypeConstant.cs
- BamlVersionHeader.cs
- HtmlShim.cs
- DescendantQuery.cs
- TextRange.cs
- X509CertificateInitiatorServiceCredential.cs
- RenderDataDrawingContext.cs
- SoapIgnoreAttribute.cs
- DefaultMemberAttribute.cs
- StandardToolWindows.cs
- ColorConverter.cs
- DNS.cs
- Encoder.cs
- DBAsyncResult.cs
- SizeChangedEventArgs.cs
- COM2ComponentEditor.cs
- CollectionViewGroupInternal.cs
- GridViewCellAutomationPeer.cs
- XmlDataDocument.cs
- SqlInternalConnectionSmi.cs
- PseudoWebRequest.cs
- DesignTimeType.cs
- ConditionedDesigner.cs
- DataViewManagerListItemTypeDescriptor.cs
- OdbcInfoMessageEvent.cs
- IIS7WorkerRequest.cs
- ServiceDebugBehavior.cs
- AudioException.cs
- InputLangChangeRequestEvent.cs
- COM2PropertyPageUITypeConverter.cs
- LineVisual.cs
- X509CertificateStore.cs
- RectangleConverter.cs
- ValidationEventArgs.cs
- SafeTimerHandle.cs
- ValidationHelper.cs
- SqlRowUpdatingEvent.cs
- StyleXamlTreeBuilder.cs
- Graph.cs
- GridView.cs
- ProtocolsSection.cs
- DecimalConstantAttribute.cs
- SequenceNumber.cs
- TdsParserHelperClasses.cs
- AccessibleObject.cs
- XPathNodeInfoAtom.cs
- Stopwatch.cs
- ReadOnlyDictionary.cs
- DataSourceSelectArguments.cs
- CmsUtils.cs
- TreeViewEvent.cs
- File.cs
- CodeTypeReferenceExpression.cs
- JpegBitmapEncoder.cs
- IncrementalHitTester.cs
- OdbcStatementHandle.cs
- ViewKeyConstraint.cs
- MetadataCache.cs
- BaseAsyncResult.cs
- TriggerAction.cs
- UnlockCardRequest.cs