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
- CancellationHandlerDesigner.cs
- Array.cs
- ConfigXmlSignificantWhitespace.cs
- UITypeEditor.cs
- TaskHelper.cs
- TypeConverterAttribute.cs
- ModuleElement.cs
- ResXBuildProvider.cs
- PublisherIdentityPermission.cs
- UserControlBuildProvider.cs
- ListViewItemMouseHoverEvent.cs
- StandardCommands.cs
- SqlVisitor.cs
- TextServicesDisplayAttributePropertyRanges.cs
- GridViewActionList.cs
- SqlDataSourceAdvancedOptionsForm.cs
- ContextMenuService.cs
- AssemblyResolver.cs
- ServiceModelConfigurationElementCollection.cs
- HtmlButton.cs
- SiteMapSection.cs
- SymmetricKeyWrap.cs
- CustomLineCap.cs
- NullReferenceException.cs
- VirtualPath.cs
- MediaSystem.cs
- EventPrivateKey.cs
- Divide.cs
- AxHost.cs
- DataRelationPropertyDescriptor.cs
- AuthenticationModuleElementCollection.cs
- _ConnectStream.cs
- ErrorStyle.cs
- ErrorFormatterPage.cs
- PropertyFilterAttribute.cs
- Accessible.cs
- OleDbPropertySetGuid.cs
- XmlEntity.cs
- PersonalizationStateInfoCollection.cs
- CacheDependency.cs
- PageHandlerFactory.cs
- SamlSecurityToken.cs
- AuthenticationException.cs
- SkinBuilder.cs
- InvalidPrinterException.cs
- RangeBase.cs
- Typography.cs
- NameService.cs
- ClientTargetSection.cs
- FtpCachePolicyElement.cs
- PropertyFilterAttribute.cs
- DateTimeValueSerializer.cs
- UidPropertyAttribute.cs
- TimeoutException.cs
- Expression.cs
- SqlFactory.cs
- VisualStyleElement.cs
- WsrmFault.cs
- UndoEngine.cs
- HtmlTernaryTree.cs
- GeneralTransformGroup.cs
- WindowShowOrOpenTracker.cs
- RegistryPermission.cs
- WorkflowMarkupSerializer.cs
- Thread.cs
- IndentTextWriter.cs
- BehaviorDragDropEventArgs.cs
- RawKeyboardInputReport.cs
- ComplusTypeValidator.cs
- AssemblyInfo.cs
- WebControlParameterProxy.cs
- LockCookie.cs
- CheckBoxAutomationPeer.cs
- DesignerMetadata.cs
- HtmlTitle.cs
- PowerModeChangedEventArgs.cs
- ResetableIterator.cs
- TextClipboardData.cs
- ClientScriptManager.cs
- SpecialNameAttribute.cs
- SequenceDesignerAccessibleObject.cs
- ObsoleteAttribute.cs
- RSACryptoServiceProvider.cs
- InvokeDelegate.cs
- BamlResourceSerializer.cs
- DataGridViewTextBoxColumn.cs
- OleDbCommandBuilder.cs
- CodeFieldReferenceExpression.cs
- EndpointIdentityExtension.cs
- ManifestBasedResourceGroveler.cs
- ApplicationDirectoryMembershipCondition.cs
- Marshal.cs
- ValidationRule.cs
- ParenthesizePropertyNameAttribute.cs
- BinaryExpression.cs
- ConfigurationPropertyAttribute.cs
- SchemaNames.cs
- XmlSchemaRedefine.cs
- SymbolMethod.cs
- IRCollection.cs