Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / clr / src / BCL / System / Diagnostics / AssertFilter.cs / 1305376 / AssertFilter.cs
// ==++== // // Copyright (c) Microsoft Corporation. All rights reserved. // // ==--== namespace System.Diagnostics { using System; using System.Runtime.Versioning; // 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() { } [System.Security.SecuritySafeCritical] // auto-generated [ResourceExposure(ResourceScope.Process)] [ResourceConsumption(ResourceScope.Process)] public override AssertFilters AssertFailure(String condition, String message, StackTrace location) { return (AssertFilters) Assert.ShowDefaultAssertDialog (condition, message, location.ToString()); } } } // 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
- CssClassPropertyAttribute.cs
- SafeCryptContextHandle.cs
- validation.cs
- AuthenticationModuleElementCollection.cs
- BufferedReceiveElement.cs
- DependencyPropertyKind.cs
- Matrix.cs
- Baml2006ReaderSettings.cs
- Vector3DIndependentAnimationStorage.cs
- ApplicationActivator.cs
- SoapServerMethod.cs
- XmlUrlResolver.cs
- TextBoxBaseDesigner.cs
- ThicknessConverter.cs
- ImageButton.cs
- AsymmetricSecurityBindingElement.cs
- TextParaClient.cs
- TraversalRequest.cs
- followingsibling.cs
- TrackingMemoryStream.cs
- IOThreadTimer.cs
- DebugView.cs
- RegexRunner.cs
- TabletCollection.cs
- ImageField.cs
- SqlProcedureAttribute.cs
- FontSource.cs
- Control.cs
- LinkedResourceCollection.cs
- UnsafeNativeMethods.cs
- PointLight.cs
- PagerSettings.cs
- ClientWindowsAuthenticationMembershipProvider.cs
- SafeSystemMetrics.cs
- Function.cs
- TextEditorThreadLocalStore.cs
- UInt64Converter.cs
- SpotLight.cs
- EventlogProvider.cs
- XmlStreamStore.cs
- RelatedImageListAttribute.cs
- XMLSchema.cs
- StorageMappingItemLoader.cs
- StateManagedCollection.cs
- FileDialogPermission.cs
- UmAlQuraCalendar.cs
- PageThemeCodeDomTreeGenerator.cs
- HtmlElement.cs
- HierarchicalDataBoundControlAdapter.cs
- PropertyDescriptor.cs
- XmlNamespaceMappingCollection.cs
- Context.cs
- DateTime.cs
- DataGridViewCellCollection.cs
- SiteMapDataSourceView.cs
- Matrix.cs
- HorizontalAlignConverter.cs
- ListBindableAttribute.cs
- X509Chain.cs
- EventNotify.cs
- DataGridColumnHeaderItemAutomationPeer.cs
- ComboBox.cs
- SqlFunctionAttribute.cs
- CheckoutException.cs
- Collection.cs
- Message.cs
- Codec.cs
- SmtpDigestAuthenticationModule.cs
- CategoryNameCollection.cs
- OledbConnectionStringbuilder.cs
- BinaryObjectWriter.cs
- PlainXmlSerializer.cs
- Atom10FormatterFactory.cs
- ToolStripRendererSwitcher.cs
- ControlIdConverter.cs
- Underline.cs
- SmtpNtlmAuthenticationModule.cs
- Point3DCollectionConverter.cs
- ControlFilterExpression.cs
- MenuStrip.cs
- PropertyManager.cs
- VBIdentifierName.cs
- util.cs
- _ServiceNameStore.cs
- CompositionAdorner.cs
- ValidationErrorEventArgs.cs
- CodeAttributeDeclaration.cs
- TypographyProperties.cs
- ImportOptions.cs
- AttachedPropertyDescriptor.cs
- ProxyWebPartManager.cs
- GeneralTransform2DTo3D.cs
- ACL.cs
- RouteTable.cs
- LinearGradientBrush.cs
- AuditLog.cs
- SemanticResolver.cs
- XsdBuildProvider.cs
- SecurityException.cs
- ImageListStreamer.cs