Code:
/ DotNET / DotNET / 8.0 / untmp / whidbey / REDBITS / 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); } } }
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- Button.cs
- ToolStripProfessionalLowResolutionRenderer.cs
- WebHeaderCollection.cs
- ToolstripProfessionalRenderer.cs
- HttpDebugHandler.cs
- AspNetHostingPermission.cs
- Symbol.cs
- XPathAxisIterator.cs
- SuppressIldasmAttribute.cs
- SafeWaitHandle.cs
- templategroup.cs
- BoundColumn.cs
- WebBrowsableAttribute.cs
- SplineKeyFrames.cs
- SendKeys.cs
- RawTextInputReport.cs
- LicenseException.cs
- InstanceStore.cs
- LayeredChannelFactory.cs
- ObjectViewListener.cs
- PresentationSource.cs
- PrintDocument.cs
- Types.cs
- XmlILAnnotation.cs
- metadatamappinghashervisitor.cs
- ViewCellSlot.cs
- Cursors.cs
- OfTypeExpression.cs
- GuidelineCollection.cs
- GcSettings.cs
- XmlILModule.cs
- CellNormalizer.cs
- HostedElements.cs
- lengthconverter.cs
- GridView.cs
- XsdDataContractExporter.cs
- Help.cs
- SettingsContext.cs
- XmlTextEncoder.cs
- ToolStripItemClickedEventArgs.cs
- OpacityConverter.cs
- ThrowHelper.cs
- StylusCaptureWithinProperty.cs
- ListItemParagraph.cs
- TextServicesDisplayAttribute.cs
- TemplateParser.cs
- XsltCompileContext.cs
- TransactionFilter.cs
- AnimationLayer.cs
- dataobject.cs
- SQLMoneyStorage.cs
- SmiEventSink_DeferedProcessing.cs
- XomlDesignerLoader.cs
- PasswordBoxAutomationPeer.cs
- XmlHierarchyData.cs
- ServiceActivationException.cs
- HttpProfileGroupBase.cs
- XmlText.cs
- IResourceProvider.cs
- COM2FontConverter.cs
- SendingRequestEventArgs.cs
- UnsafeNativeMethods.cs
- DynamicControlParameter.cs
- CompilerParameters.cs
- SerialPort.cs
- VectorCollectionValueSerializer.cs
- TraceListener.cs
- TypeGenericEnumerableViewSchema.cs
- XamlFigureLengthSerializer.cs
- Socket.cs
- ElementNotEnabledException.cs
- ApplyTemplatesAction.cs
- FloaterParagraph.cs
- ActivityStateRecord.cs
- DataObject.cs
- DbMetaDataColumnNames.cs
- Viewport3DAutomationPeer.cs
- ToolstripProfessionalRenderer.cs
- EntityDataSourceView.cs
- oledbconnectionstring.cs
- DbTransaction.cs
- BackgroundWorker.cs
- ToolStripEditorManager.cs
- TextUtf8RawTextWriter.cs
- _Connection.cs
- AnnotationResourceCollection.cs
- CompressEmulationStream.cs
- Soap11ServerProtocol.cs
- StagingAreaInputItem.cs
- ClientFormsIdentity.cs
- TreeBuilderBamlTranslator.cs
- DataKeyCollection.cs
- AsymmetricAlgorithm.cs
- XmlSchemaAppInfo.cs
- LicenseException.cs
- Rfc2898DeriveBytes.cs
- counter.cs
- ComponentCache.cs
- FontNamesConverter.cs
- MergablePropertyAttribute.cs