Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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
- SettingsPropertyValue.cs
- Span.cs
- ConnectionProviderAttribute.cs
- DataGridViewAutoSizeModeEventArgs.cs
- DatatypeImplementation.cs
- WebDisplayNameAttribute.cs
- DataSourceXmlClassAttribute.cs
- SmiTypedGetterSetter.cs
- TransformGroup.cs
- MarkupCompiler.cs
- SafeCoTaskMem.cs
- TypeLoader.cs
- XhtmlBasicLabelAdapter.cs
- InheritanceContextChangedEventManager.cs
- FunctionDescription.cs
- SmtpReplyReader.cs
- ContentElementAutomationPeer.cs
- FormsAuthenticationUser.cs
- AtomContentProperty.cs
- CodeNamespaceImport.cs
- Helper.cs
- ReliableRequestSessionChannel.cs
- CollectionEditor.cs
- dtdvalidator.cs
- SqlTopReducer.cs
- TemplateBamlTreeBuilder.cs
- StylusButtonCollection.cs
- TouchEventArgs.cs
- BrowserTree.cs
- RemoveStoryboard.cs
- UInt64Converter.cs
- ApplicationActivator.cs
- VBIdentifierTrimConverter.cs
- And.cs
- IPCCacheManager.cs
- RtfControls.cs
- XPathQilFactory.cs
- ControlAdapter.cs
- ObjectReaderCompiler.cs
- XmlILConstructAnalyzer.cs
- DataGridColumnEventArgs.cs
- QueryAsyncResult.cs
- XmlIgnoreAttribute.cs
- LabelEditEvent.cs
- loginstatus.cs
- UserControlParser.cs
- DecimalConstantAttribute.cs
- UpdateProgress.cs
- RequestStatusBarUpdateEventArgs.cs
- SimpleHandlerFactory.cs
- WindowCollection.cs
- ListViewCommandEventArgs.cs
- CallTemplateAction.cs
- MSAAEventDispatcher.cs
- RegularExpressionValidator.cs
- ConnectionStringsSection.cs
- BuildProvider.cs
- ToolStripManager.cs
- DesignTimeParseData.cs
- ResourceReader.cs
- XmlProcessingInstruction.cs
- SerializationEventsCache.cs
- StorageComplexPropertyMapping.cs
- XhtmlBasicPhoneCallAdapter.cs
- DataGridSortCommandEventArgs.cs
- altserialization.cs
- IncrementalReadDecoders.cs
- TakeOrSkipWhileQueryOperator.cs
- RepeaterCommandEventArgs.cs
- ping.cs
- GeometryValueSerializer.cs
- VoiceInfo.cs
- DataGridViewTextBoxEditingControl.cs
- ValidationHelper.cs
- DefaultTraceListener.cs
- SizeAnimationBase.cs
- XamlWrapperReaders.cs
- TextRangeProviderWrapper.cs
- TextEditorSpelling.cs
- MenuItemAutomationPeer.cs
- IdleTimeoutMonitor.cs
- SubqueryRules.cs
- HttpCacheVaryByContentEncodings.cs
- PeerHopCountAttribute.cs
- embossbitmapeffect.cs
- DecoderFallbackWithFailureFlag.cs
- NavigationService.cs
- IdentityManager.cs
- DetectRunnableInstancesTask.cs
- FixedLineResult.cs
- ContourSegment.cs
- UnsafeNativeMethods.cs
- GeneralTransform.cs
- NodeInfo.cs
- ManipulationLogic.cs
- RadioButtonRenderer.cs
- MonitorWrapper.cs
- CultureInfoConverter.cs
- HttpConfigurationSystem.cs
- SessionEndingEventArgs.cs