Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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
- TrustManagerMoreInformation.cs
- RSAOAEPKeyExchangeDeformatter.cs
- AnnotationObservableCollection.cs
- PathSegment.cs
- BoundPropertyEntry.cs
- ValueType.cs
- IODescriptionAttribute.cs
- CollectionsUtil.cs
- CompoundFileStreamReference.cs
- LoginViewDesigner.cs
- ChangeBlockUndoRecord.cs
- KnownColorTable.cs
- ExpressionParser.cs
- InstancePersistenceException.cs
- DataGridViewImageCell.cs
- FileDataSourceCache.cs
- Asn1IntegerConverter.cs
- ProjectionPruner.cs
- FlowDocumentReaderAutomationPeer.cs
- RowUpdatingEventArgs.cs
- FixedTextView.cs
- GenericRootAutomationPeer.cs
- BindingExpression.cs
- EnumConverter.cs
- GenericEnumerator.cs
- CodeTypeReferenceCollection.cs
- CustomPopupPlacement.cs
- EditorAttributeInfo.cs
- JournalEntryListConverter.cs
- ReliabilityContractAttribute.cs
- PeerTransportBindingElement.cs
- SafeNativeMethods.cs
- GiveFeedbackEventArgs.cs
- IsolationInterop.cs
- TextEditorCharacters.cs
- DataViewSettingCollection.cs
- DataGridViewRowsRemovedEventArgs.cs
- ScrollItemProviderWrapper.cs
- PropertySourceInfo.cs
- AsmxEndpointPickerExtension.cs
- DebugInfoExpression.cs
- RuleSet.cs
- Native.cs
- CompilerHelpers.cs
- XmlDataSourceView.cs
- PackageRelationship.cs
- XpsFilter.cs
- SqlProviderManifest.cs
- ECDsa.cs
- FileSecurity.cs
- Size.cs
- RegexWorker.cs
- QueueTransferProtocol.cs
- AnnotationHelper.cs
- NativeMethods.cs
- ReadOnlyCollection.cs
- WpfGeneratedKnownTypes.cs
- SequentialWorkflowRootDesigner.cs
- PropertyChange.cs
- TableItemPatternIdentifiers.cs
- Validator.cs
- ConditionalExpression.cs
- AuthenticationSection.cs
- InkSerializer.cs
- BindableAttribute.cs
- RegexGroup.cs
- TemplateInstanceAttribute.cs
- HttpApplication.cs
- CellParaClient.cs
- HttpCookie.cs
- HwndSourceKeyboardInputSite.cs
- WindowsGraphics2.cs
- AutomationPropertyInfo.cs
- FontStretch.cs
- KeyToListMap.cs
- SrgsNameValueTag.cs
- XpsFilter.cs
- SchemaCreator.cs
- Journal.cs
- DetailsViewCommandEventArgs.cs
- ModelItemImpl.cs
- EntityProviderServices.cs
- SqlTriggerContext.cs
- ProfilePropertySettingsCollection.cs
- SettingsPropertyCollection.cs
- UpdateRecord.cs
- OleDbRowUpdatedEvent.cs
- SocketElement.cs
- SqlDataAdapter.cs
- EventLogEntryCollection.cs
- CodeRemoveEventStatement.cs
- TripleDESCryptoServiceProvider.cs
- HttpCapabilitiesEvaluator.cs
- MessageTransmitTraceRecord.cs
- ApplicationHost.cs
- StateItem.cs
- Control.cs
- NameSpaceExtractor.cs
- httpstaticobjectscollection.cs
- WebPartTransformerAttribute.cs