Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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
- ResourceManagerWrapper.cs
- UriTemplateVariableQueryValue.cs
- PreviewPrintController.cs
- Bidi.cs
- SpotLight.cs
- ManipulationDeltaEventArgs.cs
- ActivityStateQuery.cs
- WebGetAttribute.cs
- COSERVERINFO.cs
- HtmlPanelAdapter.cs
- LinkLabelLinkClickedEvent.cs
- LocalTransaction.cs
- typedescriptorpermissionattribute.cs
- AssemblyCollection.cs
- GatewayDefinition.cs
- Subtree.cs
- LogArchiveSnapshot.cs
- ClrPerspective.cs
- GridViewColumnHeaderAutomationPeer.cs
- FamilyCollection.cs
- PrtCap_Public_Simple.cs
- DefaultProxySection.cs
- TypeDescriptionProvider.cs
- SpellerError.cs
- EventProviderWriter.cs
- TreeView.cs
- Column.cs
- DefaultConfirmation.cs
- Label.cs
- ConsoleEntryPoint.cs
- SystemFonts.cs
- CommonDialog.cs
- Evidence.cs
- OracleDateTime.cs
- RuntimeCompatibilityAttribute.cs
- ThousandthOfEmRealDoubles.cs
- _DisconnectOverlappedAsyncResult.cs
- serverconfig.cs
- WebPart.cs
- WaitForChangedResult.cs
- BasicExpressionVisitor.cs
- TypeConverter.cs
- Storyboard.cs
- RotationValidation.cs
- ToolBarButton.cs
- SignedXmlDebugLog.cs
- SchemaElementLookUpTableEnumerator.cs
- ConditionBrowserDialog.cs
- DataBoundControlAdapter.cs
- ToolboxItemFilterAttribute.cs
- OptimizedTemplateContent.cs
- PageContent.cs
- CallSite.cs
- Rule.cs
- CodeDomConfigurationHandler.cs
- AccessedThroughPropertyAttribute.cs
- CancellationHandlerDesigner.cs
- FunctionNode.cs
- SmiMetaData.cs
- VectorKeyFrameCollection.cs
- MimeWriter.cs
- WebEncodingValidatorAttribute.cs
- ReferenceService.cs
- TypeDescriptorFilterService.cs
- BitmapEffectGeneralTransform.cs
- CodeConditionStatement.cs
- ClickablePoint.cs
- FormViewDeletedEventArgs.cs
- TypeNameParser.cs
- SchemaImporterExtensionElement.cs
- CheckBoxAutomationPeer.cs
- ResXResourceSet.cs
- RunInstallerAttribute.cs
- PersonalizableAttribute.cs
- DesignerCategoryAttribute.cs
- ListView.cs
- GifBitmapEncoder.cs
- ChannelServices.cs
- XmlnsCache.cs
- TypedTableBaseExtensions.cs
- EditorAttributeInfo.cs
- ContractMapping.cs
- DeferredReference.cs
- SystemUdpStatistics.cs
- GeneralTransform3DCollection.cs
- CompositeFontInfo.cs
- RTLAwareMessageBox.cs
- XamlBuildProvider.cs
- UserControl.cs
- XmlBinaryReader.cs
- SoapRpcMethodAttribute.cs
- PasswordRecovery.cs
- EllipseGeometry.cs
- RegionIterator.cs
- RealizedColumnsBlock.cs
- SQLBoolean.cs
- RootBrowserWindowProxy.cs
- EntityDataSourceColumn.cs
- ScopelessEnumAttribute.cs
- DecimalAnimation.cs