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
- AuthorizationRule.cs
- LinkUtilities.cs
- StructuredType.cs
- RelatedView.cs
- CompilerGeneratedAttribute.cs
- SiteMapNodeCollection.cs
- GeometryHitTestParameters.cs
- RecordManager.cs
- UrlPath.cs
- PixelShader.cs
- ReturnType.cs
- StreamInfo.cs
- Events.cs
- TextUtf8RawTextWriter.cs
- ImageUrlEditor.cs
- SchemaDeclBase.cs
- Models.cs
- Point3DAnimation.cs
- LocalFileSettingsProvider.cs
- LocatorBase.cs
- XmlILStorageConverter.cs
- CellIdBoolean.cs
- VisualStyleElement.cs
- EditorOptionAttribute.cs
- ViewEvent.cs
- Signature.cs
- DES.cs
- Pkcs7Signer.cs
- DataGridViewRowPrePaintEventArgs.cs
- ArgIterator.cs
- TypeUtils.cs
- TreeNodeEventArgs.cs
- ProviderCommandInfoUtils.cs
- HostExecutionContextManager.cs
- SqlHelper.cs
- CheckBoxField.cs
- ChangeBlockUndoRecord.cs
- TextRangeSerialization.cs
- SamlAuthenticationClaimResource.cs
- QueryResponse.cs
- DeflateStream.cs
- Size3D.cs
- ResourceDisplayNameAttribute.cs
- SpellerStatusTable.cs
- DateTime.cs
- ProviderConnectionPoint.cs
- translator.cs
- DataSourceXmlSerializer.cs
- ToolBarPanel.cs
- MarkupExtensionParser.cs
- BoolExpression.cs
- OrderedHashRepartitionStream.cs
- GlyphInfoList.cs
- PersianCalendar.cs
- DataPagerField.cs
- sqlmetadatafactory.cs
- StyleCollection.cs
- TextReader.cs
- PreProcessInputEventArgs.cs
- DataGridRowEventArgs.cs
- SocketConnection.cs
- RefExpr.cs
- mil_commands.cs
- DataRowView.cs
- ChannelDispatcherCollection.cs
- CanonicalFormWriter.cs
- AppDomainInfo.cs
- Mapping.cs
- BuilderPropertyEntry.cs
- UnionExpr.cs
- VideoDrawing.cs
- GeneralTransform3DGroup.cs
- BindableTemplateBuilder.cs
- DataTablePropertyDescriptor.cs
- SynchronizationContext.cs
- DataRelationCollection.cs
- CurrentTimeZone.cs
- EntityContainerEmitter.cs
- BezierSegment.cs
- ConfigurationPropertyAttribute.cs
- SubtreeProcessor.cs
- Base64Encoder.cs
- DrawingAttributeSerializer.cs
- KeyProperty.cs
- InternalPermissions.cs
- DataGridViewCellStateChangedEventArgs.cs
- ConfigurationLocation.cs
- DateTimeConverter.cs
- OleDbWrapper.cs
- SystemKeyConverter.cs
- TextBox.cs
- Function.cs
- ObjectTypeMapping.cs
- BaseCodePageEncoding.cs
- HotSpotCollection.cs
- EntityCommandDefinition.cs
- HideDisabledControlAdapter.cs
- FormParameter.cs
- RoutedCommand.cs
- WebPartHeaderCloseVerb.cs