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
![Network programming in C#, Network Programming in VB.NET, Network Programming in .NET](/images/book.jpg)
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- CngProvider.cs
- Application.cs
- ObjectQuery.cs
- TreeNodeCollectionEditor.cs
- OleDbConnectionPoolGroupProviderInfo.cs
- ApplicationServiceHelper.cs
- TimeSpanStorage.cs
- HwndSubclass.cs
- ProviderConnectionPoint.cs
- Directory.cs
- ConstantSlot.cs
- InternalSafeNativeMethods.cs
- InvalidFilterCriteriaException.cs
- LookupBindingPropertiesAttribute.cs
- RegexTree.cs
- FormsAuthenticationTicket.cs
- SeverityFilter.cs
- Queue.cs
- OdbcConnectionFactory.cs
- ZipQueryOperator.cs
- SystemWebExtensionsSectionGroup.cs
- FacetChecker.cs
- TransactedBatchContext.cs
- SystemPens.cs
- InternalCache.cs
- FormatSettings.cs
- NameValueCollection.cs
- DataGridViewComboBoxEditingControl.cs
- NavigatorInput.cs
- _CommandStream.cs
- ClientFormsIdentity.cs
- SchemaSetCompiler.cs
- WpfPayload.cs
- XmlSerializerVersionAttribute.cs
- LabelLiteral.cs
- PrivilegedConfigurationManager.cs
- UserPreferenceChangingEventArgs.cs
- DynamicDiscoveryDocument.cs
- SoapIncludeAttribute.cs
- XmlDataLoader.cs
- InvalidComObjectException.cs
- Activity.cs
- CollectionBase.cs
- WebPartsPersonalizationAuthorization.cs
- BindingContext.cs
- AdapterDictionary.cs
- ConfigsHelper.cs
- IApplicationTrustManager.cs
- EnumValAlphaComparer.cs
- DBNull.cs
- RenderCapability.cs
- Control.cs
- DateTimeOffsetStorage.cs
- PerformanceCounterPermission.cs
- SqlComparer.cs
- altserialization.cs
- ZipIOLocalFileBlock.cs
- ReceiveMessageAndVerifySecurityAsyncResultBase.cs
- WebBrowserNavigatingEventHandler.cs
- CrossAppDomainChannel.cs
- OutputCacheSettingsSection.cs
- CheckPair.cs
- PtsPage.cs
- RawStylusInputCustomData.cs
- WebPartsPersonalizationAuthorization.cs
- SapiGrammar.cs
- AttributeTable.cs
- ColorAnimationUsingKeyFrames.cs
- JapaneseLunisolarCalendar.cs
- CompilerCollection.cs
- RecognizerStateChangedEventArgs.cs
- WindowsBrush.cs
- HandlerFactoryCache.cs
- WindowPattern.cs
- LoginUtil.cs
- TableHeaderCell.cs
- ReturnType.cs
- WorkflowInvoker.cs
- WebConvert.cs
- CodeGeneratorAttribute.cs
- Trigger.cs
- XNodeNavigator.cs
- FixedSOMTable.cs
- CustomValidator.cs
- ConstantSlot.cs
- TabItem.cs
- RenderOptions.cs
- ConstraintCollection.cs
- WorkflowFormatterBehavior.cs
- ChannelBuilder.cs
- ACL.cs
- MediaScriptCommandRoutedEventArgs.cs
- Pkcs7Recipient.cs
- PerfCounters.cs
- SimpleHandlerFactory.cs
- SQLBinaryStorage.cs
- AssemblyAttributes.cs
- RecommendedAsConfigurableAttribute.cs
- input.cs
- UIElement3DAutomationPeer.cs