Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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
- SettingsProperty.cs
- ListViewItem.cs
- FixedSOMTextRun.cs
- ConfigurationStrings.cs
- SchemaMerger.cs
- ExpandedWrapper.cs
- Accessible.cs
- CombinedGeometry.cs
- AppLevelCompilationSectionCache.cs
- DurableInstancingOptions.cs
- IntranetCredentialPolicy.cs
- TextTreeTextBlock.cs
- Bitmap.cs
- TemplatedMailWebEventProvider.cs
- ToolStripDropDownButton.cs
- SslStream.cs
- OverflowException.cs
- _Connection.cs
- XmlHierarchicalDataSourceView.cs
- XmlSchemaAny.cs
- HtmlWindowCollection.cs
- ToolboxDataAttribute.cs
- ValueCollectionParameterReader.cs
- SQLConvert.cs
- ResXBuildProvider.cs
- QueryOperatorEnumerator.cs
- Int16Converter.cs
- EntityModelSchemaGenerator.cs
- OleDbEnumerator.cs
- AppSettingsReader.cs
- TiffBitmapDecoder.cs
- DependencyObject.cs
- UrlMappingCollection.cs
- StylusPointPropertyInfo.cs
- ConfigXmlElement.cs
- XmlSchemaAttributeGroupRef.cs
- Tokenizer.cs
- DbConnectionStringBuilder.cs
- SafeLibraryHandle.cs
- IdentityHolder.cs
- SortAction.cs
- TypedElement.cs
- UInt64.cs
- iisPickupDirectory.cs
- UmAlQuraCalendar.cs
- _SslStream.cs
- XmlBoundElement.cs
- TdsEnums.cs
- ParamArrayAttribute.cs
- PolyBezierSegmentFigureLogic.cs
- DefaultBindingPropertyAttribute.cs
- Queue.cs
- OverrideMode.cs
- RectangleGeometry.cs
- NetworkAddressChange.cs
- ViewCellSlot.cs
- OleDbError.cs
- PropertyOverridesDialog.cs
- WindowsMenu.cs
- HijriCalendar.cs
- MethodBuilder.cs
- BindingExpressionBase.cs
- GeometryDrawing.cs
- AsymmetricSignatureFormatter.cs
- FixedSOMFixedBlock.cs
- SchemaObjectWriter.cs
- WorkflowInlining.cs
- CollectionConverter.cs
- MonthChangedEventArgs.cs
- Substitution.cs
- ClockGroup.cs
- SafeNativeMethods.cs
- FileDialog.cs
- UIPermission.cs
- Frame.cs
- GenericPrincipal.cs
- ConstraintEnumerator.cs
- SqlGenericUtil.cs
- HasCopySemanticsAttribute.cs
- ApplicationSecurityManager.cs
- AVElementHelper.cs
- NotSupportedException.cs
- RectangleF.cs
- Function.cs
- FunctionUpdateCommand.cs
- DispatcherExceptionEventArgs.cs
- ExtendedProperty.cs
- MediaPlayerState.cs
- Module.cs
- StringInfo.cs
- Pair.cs
- DataKey.cs
- LayoutEditorPart.cs
- MetadataCollection.cs
- SetterBaseCollection.cs
- Bitmap.cs
- DrawingContextFlattener.cs
- Parameter.cs
- WebBrowserEvent.cs
- TableChangeProcessor.cs