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
- PrintDocument.cs
- _emptywebproxy.cs
- StringConverter.cs
- Debug.cs
- InArgument.cs
- ReferencedCollectionType.cs
- DesignSurface.cs
- PropertyMapper.cs
- EventSourceCreationData.cs
- Activity.cs
- ProtocolElementCollection.cs
- CompilerGeneratedAttribute.cs
- StdValidatorsAndConverters.cs
- DataSourceView.cs
- ZipIOExtraFieldPaddingElement.cs
- ConfigPathUtility.cs
- QilList.cs
- Button.cs
- VerticalAlignConverter.cs
- XmlDocumentSurrogate.cs
- MouseGestureConverter.cs
- EntityDataSourceUtil.cs
- TabControlAutomationPeer.cs
- XsdCachingReader.cs
- ScrollItemPatternIdentifiers.cs
- HMACSHA384.cs
- ClockGroup.cs
- TreeNodeStyleCollection.cs
- XmlParser.cs
- UIPermission.cs
- OptimalBreakSession.cs
- SoapAttributeAttribute.cs
- DSACryptoServiceProvider.cs
- ConfigurationSectionCollection.cs
- DependencyObjectCodeDomSerializer.cs
- httpstaticobjectscollection.cs
- NameValueFileSectionHandler.cs
- ServiceOperationParameter.cs
- CodeConstructor.cs
- SafeLocalAllocation.cs
- DNS.cs
- ByteStorage.cs
- SecurityTraceRecordHelper.cs
- UnsafeNativeMethodsMilCoreApi.cs
- ListViewHitTestInfo.cs
- ConfigXmlElement.cs
- CLSCompliantAttribute.cs
- SpeechSeg.cs
- Crc32.cs
- DynamicMethod.cs
- MetafileHeaderEmf.cs
- ManagementBaseObject.cs
- CollectionViewProxy.cs
- PreviewKeyDownEventArgs.cs
- ArcSegment.cs
- ProjectionCamera.cs
- TextEffect.cs
- relpropertyhelper.cs
- RoutingService.cs
- Serializer.cs
- OptimalTextSource.cs
- IconHelper.cs
- XmlDataSourceView.cs
- DrawingImage.cs
- DatatypeImplementation.cs
- Stylesheet.cs
- panel.cs
- AxDesigner.cs
- StorageScalarPropertyMapping.cs
- ZipIOFileItemStream.cs
- DesignColumnCollection.cs
- ColumnWidthChangedEvent.cs
- TextChangedEventArgs.cs
- DataGridViewHeaderCell.cs
- ExpressionDumper.cs
- Html32TextWriter.cs
- LongMinMaxAggregationOperator.cs
- NativeMethods.cs
- SiteIdentityPermission.cs
- _PooledStream.cs
- ResourceProperty.cs
- DataGridViewSelectedColumnCollection.cs
- XmlObjectSerializerWriteContext.cs
- ExecutionEngineException.cs
- MimeTypeAttribute.cs
- SoapIgnoreAttribute.cs
- datacache.cs
- ScriptManager.cs
- FloaterParagraph.cs
- X509Certificate.cs
- ObjectDataSourceFilteringEventArgs.cs
- MultiplexingFormatMapping.cs
- UnsafeNativeMethods.cs
- TableLayout.cs
- TextPattern.cs
- ExplicitDiscriminatorMap.cs
- ILGen.cs
- ToggleButton.cs
- WebServiceResponseDesigner.cs
- ListViewSortEventArgs.cs