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
- PropertyMetadata.cs
- ProxyGenerator.cs
- _LocalDataStore.cs
- HTTP_SERVICE_CONFIG_URLACL_PARAM.cs
- ModuleConfigurationInfo.cs
- PageThemeCodeDomTreeGenerator.cs
- DataGridColumn.cs
- WindowsUserNameSecurityTokenAuthenticator.cs
- XmlEntity.cs
- NavigationPropertyEmitter.cs
- InputManager.cs
- AudioSignalProblemOccurredEventArgs.cs
- EmptyEnumerator.cs
- DoWorkEventArgs.cs
- UnsafeNativeMethods.cs
- LocatorPart.cs
- Itemizer.cs
- ByteViewer.cs
- MimeMapping.cs
- BitmapEffectRenderDataResource.cs
- FunctionCommandText.cs
- PixelFormatConverter.cs
- DataGridViewRowEventArgs.cs
- SafeLibraryHandle.cs
- IIS7WorkerRequest.cs
- DataRowChangeEvent.cs
- X509SecurityTokenProvider.cs
- SmiGettersStream.cs
- FrameAutomationPeer.cs
- InstanceLockQueryResult.cs
- ElementUtil.cs
- WebResponse.cs
- EntityClassGenerator.cs
- CollectionAdapters.cs
- Int16Converter.cs
- LabelDesigner.cs
- XmlNamedNodeMap.cs
- StateChangeEvent.cs
- SimpleWebHandlerParser.cs
- EndpointConfigContainer.cs
- VectorCollection.cs
- TreeNodeConverter.cs
- ExeContext.cs
- DllNotFoundException.cs
- ThrowHelper.cs
- PanningMessageFilter.cs
- DaylightTime.cs
- XmlSerializerAssemblyAttribute.cs
- Propagator.cs
- GridPatternIdentifiers.cs
- FormViewUpdatedEventArgs.cs
- ResolveMatchesApril2005.cs
- TraceLog.cs
- ExpandedWrapper.cs
- ResourcesChangeInfo.cs
- AuthenticationException.cs
- GridItemPatternIdentifiers.cs
- WinFormsSecurity.cs
- InstallerTypeAttribute.cs
- SBCSCodePageEncoding.cs
- CanonicalXml.cs
- TypeReference.cs
- FlowDocumentReader.cs
- ScopelessEnumAttribute.cs
- ConcurrentDictionary.cs
- IDQuery.cs
- Stack.cs
- Image.cs
- GridViewColumnCollection.cs
- CustomAssemblyResolver.cs
- FunctionGenerator.cs
- XmlDomTextWriter.cs
- OracleTransaction.cs
- Attributes.cs
- CollectionView.cs
- ComplexBindingPropertiesAttribute.cs
- OleDbFactory.cs
- UnsafeNativeMethods.cs
- ButtonBaseAutomationPeer.cs
- VarInfo.cs
- TrimSurroundingWhitespaceAttribute.cs
- MouseEvent.cs
- ControlBuilder.cs
- TransformPatternIdentifiers.cs
- ModelItemKeyValuePair.cs
- ToolStripProgressBar.cs
- XamlGridLengthSerializer.cs
- UdpDiscoveryEndpoint.cs
- RepeaterItemEventArgs.cs
- PersistNameAttribute.cs
- ADConnectionHelper.cs
- TabletCollection.cs
- UpdatePanelControlTrigger.cs
- ServiceContractDetailViewControl.cs
- BitmapEffectGeneralTransform.cs
- X509Certificate2Collection.cs
- SchemaCollectionCompiler.cs
- ReliableSessionBindingElement.cs
- XmlExtensionFunction.cs
- WebPartMinimizeVerb.cs