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
- LinqDataView.cs
- InputEventArgs.cs
- StructuralObject.cs
- CodePageEncoding.cs
- HwndSourceParameters.cs
- PolyBezierSegmentFigureLogic.cs
- DocComment.cs
- DataShape.cs
- SystemIPGlobalProperties.cs
- InsufficientExecutionStackException.cs
- PassportAuthentication.cs
- HwndHostAutomationPeer.cs
- PopupRootAutomationPeer.cs
- Camera.cs
- ListBox.cs
- DelayLoadType.cs
- ComponentResourceManager.cs
- PeerUnsafeNativeMethods.cs
- ProcessInfo.cs
- SecurityElement.cs
- ElementHostPropertyMap.cs
- XpsS0ValidatingLoader.cs
- OrderedDictionaryStateHelper.cs
- EditingContext.cs
- DocumentPage.cs
- ToolStripDesignerAvailabilityAttribute.cs
- DelegatingConfigHost.cs
- EventTrigger.cs
- Update.cs
- ImpersonationContext.cs
- RIPEMD160Managed.cs
- DesignOnlyAttribute.cs
- NumberEdit.cs
- DescendantBaseQuery.cs
- TreePrinter.cs
- DetailsViewCommandEventArgs.cs
- ServiceInfo.cs
- FilterQuery.cs
- DbDeleteCommandTree.cs
- ToolStripSplitStackLayout.cs
- MenuItemStyleCollection.cs
- ObjectDataProvider.cs
- ListViewGroupConverter.cs
- PanelDesigner.cs
- _PooledStream.cs
- ToolStripGripRenderEventArgs.cs
- KnownTypes.cs
- HtmlPanelAdapter.cs
- SamlConstants.cs
- WebBrowserNavigatedEventHandler.cs
- XmlSerializationReader.cs
- Attribute.cs
- ObjectIDGenerator.cs
- RestHandler.cs
- SiteMapNodeItem.cs
- CombinedGeometry.cs
- parserscommon.cs
- DESCryptoServiceProvider.cs
- DockProviderWrapper.cs
- RangeValueProviderWrapper.cs
- EffectiveValueEntry.cs
- SymLanguageType.cs
- Visual3D.cs
- AttributeQuery.cs
- HttpConfigurationContext.cs
- DataControlButton.cs
- ExpandableObjectConverter.cs
- EnumMember.cs
- SchemaTableColumn.cs
- RoleService.cs
- SchemaImporterExtension.cs
- EntityTransaction.cs
- LiteralControl.cs
- ResourceDescriptionAttribute.cs
- CodeMethodInvokeExpression.cs
- DecimalFormatter.cs
- ScrollChrome.cs
- WhereQueryOperator.cs
- UIElementCollection.cs
- PropertyRecord.cs
- Matrix.cs
- NeutralResourcesLanguageAttribute.cs
- WrapPanel.cs
- XmlSchemaInclude.cs
- HtmlMeta.cs
- Models.cs
- DataServiceClientException.cs
- DefaultValueMapping.cs
- RootAction.cs
- VirtualPathProvider.cs
- TextTreeRootNode.cs
- RootDesignerSerializerAttribute.cs
- AuthenticationModuleElementCollection.cs
- TextRangeEdit.cs
- FormViewRow.cs
- TimeZone.cs
- HwndHostAutomationPeer.cs
- ResourceProperty.cs
- ListControl.cs
- EventLog.cs