Code:
/ FXUpdate3074 / FXUpdate3074 / 1.1 / untmp / whidbey / QFE / 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 assertt 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 assertt 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- UserInitiatedNavigationPermission.cs
- ProviderCollection.cs
- OutputScopeManager.cs
- Size3DValueSerializer.cs
- ImpersonateTokenRef.cs
- SettingsPropertyValueCollection.cs
- ThrowHelper.cs
- ChannelManager.cs
- ComEventsInfo.cs
- AppearanceEditorPart.cs
- BatchStream.cs
- Bidi.cs
- smtpconnection.cs
- DefaultBinder.cs
- CacheEntry.cs
- AutomationPeer.cs
- OpenTypeLayoutCache.cs
- securitycriticaldata.cs
- Int32Animation.cs
- NotifyCollectionChangedEventArgs.cs
- SamlAdvice.cs
- ImageBrush.cs
- TypeNameConverter.cs
- StringToken.cs
- PropertyPathWorker.cs
- CommandConverter.cs
- CallbackHandler.cs
- DependencyPropertyKind.cs
- ListViewDeletedEventArgs.cs
- X509Chain.cs
- TextRunCache.cs
- TextChangedEventArgs.cs
- DbTransaction.cs
- ImageBrush.cs
- CharUnicodeInfo.cs
- CircleHotSpot.cs
- AggregateNode.cs
- Rect3D.cs
- securitymgrsite.cs
- MetadataArtifactLoaderResource.cs
- ThicknessKeyFrameCollection.cs
- XmlHierarchicalEnumerable.cs
- TextTreeText.cs
- Hash.cs
- PerformanceCounterManager.cs
- DesignerDataView.cs
- WebResourceUtil.cs
- CallbackHandler.cs
- X509Extension.cs
- KeyMatchBuilder.cs
- UIElementCollection.cs
- LineVisual.cs
- Matrix3D.cs
- StorageComplexPropertyMapping.cs
- SiteIdentityPermission.cs
- RelationshipManager.cs
- AssemblyAssociatedContentFileAttribute.cs
- DispatcherFrame.cs
- SendMailErrorEventArgs.cs
- QuotedPrintableStream.cs
- Animatable.cs
- ResourceExpressionEditor.cs
- SchemaEntity.cs
- ZoneButton.cs
- assemblycache.cs
- SystemTcpConnection.cs
- SmiEventStream.cs
- SoapExtensionTypeElement.cs
- HashCodeCombiner.cs
- Roles.cs
- FixUp.cs
- HashHelper.cs
- DataGridLinkButton.cs
- TextLine.cs
- SQLInt32Storage.cs
- MouseGestureConverter.cs
- XmlQueryContext.cs
- XPathExpr.cs
- ComNativeDescriptor.cs
- LicenseManager.cs
- ButtonFlatAdapter.cs
- PropertyRecord.cs
- PermissionSetEnumerator.cs
- SrgsOneOf.cs
- CommonDialog.cs
- UIElementParagraph.cs
- LicenseProviderAttribute.cs
- XmlChoiceIdentifierAttribute.cs
- _HeaderInfoTable.cs
- MatrixTransform3D.cs
- HostingEnvironmentSection.cs
- BuildResultCache.cs
- BamlTreeUpdater.cs
- SoapObjectReader.cs
- XmlAnyAttributeAttribute.cs
- DataColumnSelectionConverter.cs
- ValuePatternIdentifiers.cs
- OdbcReferenceCollection.cs
- XmlEntityReference.cs
- HandledMouseEvent.cs