Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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
- XmlSchemaElement.cs
- XsltCompileContext.cs
- MethodRental.cs
- WebPartConnectionsCancelEventArgs.cs
- NegationPusher.cs
- DropShadowBitmapEffect.cs
- SigningProgress.cs
- KeyNotFoundException.cs
- TableItemStyle.cs
- RuntimeHandles.cs
- PointCollection.cs
- QueryPageSettingsEventArgs.cs
- EntityDataSourceMemberPath.cs
- querybuilder.cs
- PageTheme.cs
- AutoGeneratedField.cs
- CellConstant.cs
- VisualProxy.cs
- InternalEnumValidatorAttribute.cs
- CallTemplateAction.cs
- SafeNativeMethodsMilCoreApi.cs
- DataKeyCollection.cs
- TextTreeNode.cs
- TransactionInterop.cs
- AQNBuilder.cs
- ExternalDataExchangeClient.cs
- GridViewRowEventArgs.cs
- UIElement.cs
- VirtualDirectoryMappingCollection.cs
- CodeCompiler.cs
- RowToFieldTransformer.cs
- RadioButtonStandardAdapter.cs
- TypeGeneratedEventArgs.cs
- ZipIOCentralDirectoryDigitalSignature.cs
- Int32Converter.cs
- DBCommand.cs
- FacetDescriptionElement.cs
- SqlInternalConnection.cs
- HttpResponseInternalWrapper.cs
- Bezier.cs
- OdbcConnectionFactory.cs
- DynamicPropertyHolder.cs
- _Events.cs
- FragmentNavigationEventArgs.cs
- SqlServer2KCompatibilityAnnotation.cs
- EncryptedXml.cs
- GraphicsContainer.cs
- StateBag.cs
- ProcessHostConfigUtils.cs
- DefaultEventAttribute.cs
- InvalidDataException.cs
- PathGeometry.cs
- KeyboardEventArgs.cs
- ShapingEngine.cs
- OperationCanceledException.cs
- BindingSource.cs
- LinkConverter.cs
- WebPartEditorApplyVerb.cs
- WhitespaceRule.cs
- RegexParser.cs
- EmissiveMaterial.cs
- CodeAccessSecurityEngine.cs
- Speller.cs
- WriteLine.cs
- Behavior.cs
- QuaternionRotation3D.cs
- PropertyValueChangedEvent.cs
- Button.cs
- HttpCachePolicy.cs
- ConnectionProviderAttribute.cs
- _TimerThread.cs
- StateDesignerConnector.cs
- Int32Rect.cs
- basecomparevalidator.cs
- WindowsRichEditRange.cs
- TabControlDesigner.cs
- TransportConfigurationTypeElement.cs
- StreamWriter.cs
- FormatConvertedBitmap.cs
- mactripleDES.cs
- XmlCharCheckingReader.cs
- ComponentEditorForm.cs
- WebPartConnectVerb.cs
- DispatcherEventArgs.cs
- Vector3DKeyFrameCollection.cs
- UserInitiatedRoutedEventPermissionAttribute.cs
- CompilerScope.cs
- AuthorizationRule.cs
- ContextQuery.cs
- ClonableStack.cs
- NativeMethods.cs
- CompensatableTransactionScopeActivity.cs
- basevalidator.cs
- cookiecontainer.cs
- DocumentPropertiesDialog.cs
- Main.cs
- DataBoundControlAdapter.cs
- WmlTextViewAdapter.cs
- NameValueConfigurationElement.cs
- GenericsInstances.cs