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
- HorizontalAlignConverter.cs
- TemplateKey.cs
- TextServicesCompartmentContext.cs
- ExpressionBuilder.cs
- CheckBox.cs
- FixedStringLookup.cs
- RelationshipFixer.cs
- XmlSchemaValidationException.cs
- XmlElement.cs
- SystemIcons.cs
- PointCollectionValueSerializer.cs
- Wizard.cs
- Win32Native.cs
- BaseInfoTable.cs
- MessageAction.cs
- SeekStoryboard.cs
- StringStorage.cs
- StackBuilderSink.cs
- WmpBitmapEncoder.cs
- DynamicMethod.cs
- DesigntimeLicenseContext.cs
- SocketInformation.cs
- RuntimeIdentifierPropertyAttribute.cs
- GatewayDefinition.cs
- ListBoxAutomationPeer.cs
- SkewTransform.cs
- RelationshipEndMember.cs
- WindowsListBox.cs
- Merger.cs
- BamlResourceDeserializer.cs
- ServiceRouteHandler.cs
- SqlDataSourceQueryEditor.cs
- TypefaceCollection.cs
- ImportContext.cs
- RadioButton.cs
- ConfigurationFileMap.cs
- EditorPartDesigner.cs
- Section.cs
- SpellerError.cs
- DetailsViewUpdateEventArgs.cs
- PreviewKeyDownEventArgs.cs
- CompareValidator.cs
- XLinq.cs
- BadImageFormatException.cs
- EntityViewGenerator.cs
- EdgeProfileValidation.cs
- MulticastDelegate.cs
- HashHelper.cs
- UnicastIPAddressInformationCollection.cs
- CmsInterop.cs
- BaseCodePageEncoding.cs
- PkcsMisc.cs
- LOSFormatter.cs
- XmlSchemaGroup.cs
- ConnectionsZoneDesigner.cs
- SwitchLevelAttribute.cs
- HintTextConverter.cs
- QueryExtender.cs
- ApplicationServiceManager.cs
- FileSystemEnumerable.cs
- DiscoveryDocumentReference.cs
- SeekStoryboard.cs
- FrameworkObject.cs
- Match.cs
- EnumerableCollectionView.cs
- IsolatedStorageSecurityState.cs
- ObjectListCommandsPage.cs
- HttpCachePolicy.cs
- GenerateScriptTypeAttribute.cs
- TimelineClockCollection.cs
- DataTablePropertyDescriptor.cs
- DesignerResources.cs
- TraceContext.cs
- JavaScriptObjectDeserializer.cs
- BinHexEncoder.cs
- PropertyEntry.cs
- WindowsStartMenu.cs
- xdrvalidator.cs
- ElementAtQueryOperator.cs
- MessageQueueEnumerator.cs
- LassoHelper.cs
- ComboBox.cs
- AnnotationResourceChangedEventArgs.cs
- ResXResourceSet.cs
- DbConnectionPoolCounters.cs
- XmlSchemaGroupRef.cs
- _BufferOffsetSize.cs
- Enlistment.cs
- SerializerWriterEventHandlers.cs
- SessionMode.cs
- TextOutput.cs
- streamingZipPartStream.cs
- ComponentChangingEvent.cs
- StringConcat.cs
- XmlSchemaNotation.cs
- COM2PropertyBuilderUITypeEditor.cs
- AuthenticationServiceManager.cs
- HostedNamedPipeTransportManager.cs
- MexNamedPipeBindingCollectionElement.cs
- IResourceProvider.cs