Code:
/ FXUpdate3074 / FXUpdate3074 / 1.1 / untmp / whidbey / QFE / 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 assertt 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 assertt 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- PrintDialogException.cs
- RijndaelManagedTransform.cs
- RelatedView.cs
- ListViewItemMouseHoverEvent.cs
- SqlRetyper.cs
- AttachmentCollection.cs
- ListBoxItemWrapperAutomationPeer.cs
- PropertyGridEditorPart.cs
- HttpModulesSection.cs
- BitmapCodecInfo.cs
- XmlBinaryReader.cs
- HMACSHA1.cs
- NavigationEventArgs.cs
- ScriptControl.cs
- TypeBuilder.cs
- XPathDocumentIterator.cs
- RenderDataDrawingContext.cs
- UncommonField.cs
- DNS.cs
- DoubleAnimationUsingPath.cs
- SR.cs
- NameSpaceExtractor.cs
- ToolStripDropDownClosingEventArgs.cs
- BindingsCollection.cs
- TableCellCollection.cs
- SimpleLine.cs
- CompiledIdentityConstraint.cs
- MaskedTextBoxTextEditor.cs
- MenuItemStyle.cs
- XmlStreamNodeWriter.cs
- TabPage.cs
- SQLInt64.cs
- XmlSerializerVersionAttribute.cs
- SystemEvents.cs
- cache.cs
- ListBoxItemWrapperAutomationPeer.cs
- SystemIPGlobalStatistics.cs
- AspNetCacheProfileAttribute.cs
- ImageList.cs
- SafeHandle.cs
- ScriptReference.cs
- DataObject.cs
- HttpModuleActionCollection.cs
- ListenerBinder.cs
- WebPartHeaderCloseVerb.cs
- OneOfConst.cs
- arc.cs
- XmlDataProvider.cs
- CheckBoxPopupAdapter.cs
- Thumb.cs
- MdiWindowListItemConverter.cs
- CodeExpressionStatement.cs
- TypeNameConverter.cs
- ListItem.cs
- StrongNamePublicKeyBlob.cs
- RuleSet.cs
- InvalidPropValue.cs
- EmbeddedMailObjectsCollection.cs
- ArgumentNullException.cs
- ProfileProvider.cs
- DesignTimeResourceProviderFactoryAttribute.cs
- CultureInfo.cs
- GeometryHitTestResult.cs
- ExpressionLexer.cs
- ExpressionContext.cs
- Utils.cs
- HostProtectionException.cs
- ConnectionProviderAttribute.cs
- TextEditorLists.cs
- LicenseProviderAttribute.cs
- Trace.cs
- DoubleLinkListEnumerator.cs
- TimeSpanOrInfiniteConverter.cs
- storepermissionattribute.cs
- RelationalExpressions.cs
- SqlTopReducer.cs
- ContentTextAutomationPeer.cs
- DeviceContext.cs
- MailMessage.cs
- ConsoleKeyInfo.cs
- GridSplitterAutomationPeer.cs
- RoleService.cs
- NumberSubstitution.cs
- SqlDataSourceQuery.cs
- AudioDeviceOut.cs
- ConstructorBuilder.cs
- XmlNode.cs
- WinEventWrap.cs
- TextFormatterContext.cs
- DocumentViewerHelper.cs
- PointCollection.cs
- FunctionParameter.cs
- ExpressionBindings.cs
- TypeDependencyAttribute.cs
- LookupNode.cs
- RelationalExpressions.cs
- ConstructorArgumentAttribute.cs
- Activity.cs
- rsa.cs
- CompoundFileReference.cs