Code:
/ FX-1434 / FX-1434 / 1.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
- SQLCharsStorage.cs
- GPPOINT.cs
- IPipelineRuntime.cs
- UrlPath.cs
- WebRequest.cs
- ListViewEditEventArgs.cs
- RefreshPropertiesAttribute.cs
- ExpressionParser.cs
- CollectionViewGroupRoot.cs
- ImageCodecInfo.cs
- ThreadSafeList.cs
- MediaTimeline.cs
- BooleanToVisibilityConverter.cs
- RootAction.cs
- Size.cs
- FormsAuthenticationTicket.cs
- Triplet.cs
- EnvelopedSignatureTransform.cs
- SplitContainer.cs
- CallbackValidatorAttribute.cs
- ApplicationServiceManager.cs
- ProjectionCamera.cs
- TextLineBreak.cs
- MobileControlPersister.cs
- returneventsaver.cs
- TreeView.cs
- TemplateKeyConverter.cs
- UpdatePanelTrigger.cs
- Size.cs
- LoginAutoFormat.cs
- SignatureConfirmationElement.cs
- SqlBuffer.cs
- Timer.cs
- SBCSCodePageEncoding.cs
- AssociationEndMember.cs
- ConfigurationValidatorAttribute.cs
- DataBoundControl.cs
- GridViewCommandEventArgs.cs
- EditorPartCollection.cs
- ArcSegment.cs
- LineMetrics.cs
- IncrementalHitTester.cs
- TableLayoutColumnStyleCollection.cs
- DrawingAttributesDefaultValueFactory.cs
- BlurBitmapEffect.cs
- DocComment.cs
- HandledMouseEvent.cs
- SystemColors.cs
- smtppermission.cs
- WebHeaderCollection.cs
- ShapingWorkspace.cs
- TypeProvider.cs
- XmlValidatingReaderImpl.cs
- SizeConverter.cs
- TreeView.cs
- EndpointConfigContainer.cs
- ContentFileHelper.cs
- RefType.cs
- XmlSchemaExternal.cs
- sqlcontext.cs
- NetNamedPipeBinding.cs
- XmlSchemaComplexType.cs
- CodeGotoStatement.cs
- GPPOINT.cs
- TextProperties.cs
- EntityFrameworkVersions.cs
- WebUtil.cs
- XsltContext.cs
- SqlBooleanMismatchVisitor.cs
- CustomAttributeFormatException.cs
- HostProtectionException.cs
- KnowledgeBase.cs
- ClassHandlersStore.cs
- MiniConstructorInfo.cs
- ColumnTypeConverter.cs
- GridEntry.cs
- IntegerValidatorAttribute.cs
- MarshalByRefObject.cs
- CodeTypeOfExpression.cs
- DoubleLinkList.cs
- AssemblyNameProxy.cs
- SaveFileDialog.cs
- BamlLocalizabilityResolver.cs
- SafeFindHandle.cs
- ProviderException.cs
- COM2ColorConverter.cs
- SelectionProviderWrapper.cs
- HatchBrush.cs
- RelatedImageListAttribute.cs
- ChangePassword.cs
- NotFiniteNumberException.cs
- HtmlContainerControl.cs
- ScriptManagerProxy.cs
- EntityDesignerBuildProvider.cs
- LeafCellTreeNode.cs
- ApplicationManager.cs
- ListMarkerLine.cs
- LocalizabilityAttribute.cs
- ResourcePool.cs
- ScrollProperties.cs