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
- ObjectSet.cs
- FormViewDeletedEventArgs.cs
- CapabilitiesPattern.cs
- IList.cs
- QueueProcessor.cs
- TaiwanLunisolarCalendar.cs
- SqlDataSourceCache.cs
- codemethodreferenceexpression.cs
- formatter.cs
- ExpressionVisitor.cs
- IntersectQueryOperator.cs
- InvariantComparer.cs
- ValidationPropertyAttribute.cs
- Hyperlink.cs
- RtfControlWordInfo.cs
- EntityContainerRelationshipSet.cs
- SqlStatistics.cs
- ColumnMap.cs
- TdsParserHelperClasses.cs
- DataGridTableCollection.cs
- InheritablePropertyChangeInfo.cs
- SmtpMail.cs
- WorkflowTransactionService.cs
- TaiwanLunisolarCalendar.cs
- ServerType.cs
- XmlDesignerDataSourceView.cs
- JsonFormatGeneratorStatics.cs
- BamlWriter.cs
- ResourceManager.cs
- MatrixTransform3D.cs
- ListViewItemSelectionChangedEvent.cs
- BitmapFrameDecode.cs
- Converter.cs
- DateTimeFormatInfoScanner.cs
- ConnectionManagementElementCollection.cs
- BulletDecorator.cs
- CurrentChangedEventManager.cs
- InternalDispatchObject.cs
- EncoderFallback.cs
- PropertyPath.cs
- System.Data.OracleClient_BID.cs
- Point3DAnimationBase.cs
- SQLDoubleStorage.cs
- Roles.cs
- ConnectionConsumerAttribute.cs
- MessagePartProtectionMode.cs
- ServiceModelConfigurationSectionCollection.cs
- Substitution.cs
- ClientData.cs
- Double.cs
- SapiInterop.cs
- Padding.cs
- HtmlTableRowCollection.cs
- ParallelRangeManager.cs
- CompiledQuery.cs
- VirtualPath.cs
- IgnorePropertiesAttribute.cs
- StringFunctions.cs
- NotFiniteNumberException.cs
- X509IssuerSerialKeyIdentifierClause.cs
- IdnMapping.cs
- Application.cs
- mil_sdk_version.cs
- ValueQuery.cs
- ToolboxItemAttribute.cs
- DbDataRecord.cs
- FilteredSchemaElementLookUpTable.cs
- NeutralResourcesLanguageAttribute.cs
- TargetParameterCountException.cs
- KerberosRequestorSecurityToken.cs
- StateInitialization.cs
- DataGridPagingPage.cs
- DropDownList.cs
- iisPickupDirectory.cs
- ObjectReferenceStack.cs
- FaultDescription.cs
- RequestCachingSection.cs
- StylusDevice.cs
- ListBoxItemAutomationPeer.cs
- NavigationProperty.cs
- ArgIterator.cs
- BitmapEffectvisualstate.cs
- CapabilitiesState.cs
- ParserContext.cs
- InvokeProviderWrapper.cs
- MouseOverProperty.cs
- mediaclock.cs
- EmbeddedMailObject.cs
- HttpFileCollection.cs
- _NetRes.cs
- WebPartTransformerAttribute.cs
- AssemblyFilter.cs
- UnionExpr.cs
- StylusPointDescription.cs
- PropertyMapper.cs
- Exceptions.cs
- CodeEventReferenceExpression.cs
- ImageConverter.cs
- AppDomainManager.cs
- GrammarBuilder.cs