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
- DeflateEmulationStream.cs
- PropertyValueChangedEvent.cs
- WebBrowserProgressChangedEventHandler.cs
- SqlCacheDependencyDatabaseCollection.cs
- FillBehavior.cs
- ControlIdConverter.cs
- GifBitmapDecoder.cs
- AppendHelper.cs
- _Connection.cs
- TableRow.cs
- SqlDataRecord.cs
- DataGridViewCellFormattingEventArgs.cs
- SignatureHelper.cs
- TypeConverterHelper.cs
- CompilationRelaxations.cs
- FlowDocumentPaginator.cs
- SpellerHighlightLayer.cs
- DataSourceCollectionBase.cs
- WithStatement.cs
- WebPartVerbCollection.cs
- DiscoveryClientRequestChannel.cs
- KeyValuePairs.cs
- OutputCacheProfile.cs
- GreenMethods.cs
- SQLDateTimeStorage.cs
- DBCSCodePageEncoding.cs
- HelpProvider.cs
- XmlTypeMapping.cs
- ListViewCancelEventArgs.cs
- Padding.cs
- RoleServiceManager.cs
- ExtenderProvidedPropertyAttribute.cs
- arclist.cs
- UnsafeNativeMethodsPenimc.cs
- TreeViewItemAutomationPeer.cs
- SourceInterpreter.cs
- VerificationException.cs
- ApplicationTrust.cs
- ContentIterators.cs
- WebColorConverter.cs
- AccessorTable.cs
- DataRecordObjectView.cs
- OleCmdHelper.cs
- XmlDigitalSignatureProcessor.cs
- EventMetadata.cs
- ImageFormat.cs
- ControlValuePropertyAttribute.cs
- UpdatePanelTriggerCollection.cs
- HostingPreferredMapPath.cs
- ExtractedStateEntry.cs
- Geometry3D.cs
- Vector3DCollectionConverter.cs
- NamedElement.cs
- WorkflowTransactionService.cs
- ObjectSpanRewriter.cs
- XhtmlBasicValidatorAdapter.cs
- SecurityDocument.cs
- OleServicesContext.cs
- CoreChannel.cs
- MeasurementDCInfo.cs
- TableColumn.cs
- CompilerInfo.cs
- TypefaceMap.cs
- HttpRuntimeSection.cs
- ChtmlImageAdapter.cs
- DefaultValueConverter.cs
- DataGridState.cs
- MouseActionValueSerializer.cs
- CodeGroup.cs
- XmlRawWriterWrapper.cs
- MessagePropertyVariants.cs
- Property.cs
- EventHandlersDesigner.cs
- OperatingSystem.cs
- DeviceContexts.cs
- PinnedBufferMemoryStream.cs
- SpeechRecognizer.cs
- BoolExpression.cs
- InfoCardKeyedHashAlgorithm.cs
- QueryOptionExpression.cs
- ConfigDefinitionUpdates.cs
- TrackingWorkflowEventArgs.cs
- KeyManager.cs
- FixUp.cs
- MenuCommand.cs
- DesignerActionService.cs
- EntityEntry.cs
- NumericPagerField.cs
- DocumentPageView.cs
- AssemblyCollection.cs
- CustomAttributeBuilder.cs
- ConfigurationManagerInternal.cs
- ValidatedControlConverter.cs
- MessageContractExporter.cs
- FixedTextSelectionProcessor.cs
- SQLInt32Storage.cs
- Shape.cs
- FontNamesConverter.cs
- ObservableDictionary.cs
- TypeBinaryExpression.cs