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
- ReaderContextStackData.cs
- MergeFilterQuery.cs
- PublishLicense.cs
- CalculatedColumn.cs
- ObjectFactoryCodeDomTreeGenerator.cs
- FormatVersion.cs
- FullTextState.cs
- WebPartDeleteVerb.cs
- RTLAwareMessageBox.cs
- SignedInfo.cs
- StyleReferenceConverter.cs
- BamlLocalizerErrorNotifyEventArgs.cs
- DesignerActionListCollection.cs
- HttpFileCollection.cs
- WebPartManagerInternals.cs
- TryExpression.cs
- SafeBitVector32.cs
- DesignerGenericWebPart.cs
- Variable.cs
- DrawingCollection.cs
- TrackingMemoryStreamFactory.cs
- DistinctQueryOperator.cs
- InternalConfigHost.cs
- TypeReference.cs
- PrivilegedConfigurationManager.cs
- JavaScriptSerializer.cs
- RangeEnumerable.cs
- InfoCardSchemas.cs
- XmlUtil.cs
- DelegatedStream.cs
- UnknownWrapper.cs
- NestedContainer.cs
- MatrixAnimationBase.cs
- UnsafeNativeMethods.cs
- XappLauncher.cs
- SHA512Managed.cs
- DetailsViewInsertedEventArgs.cs
- CodeMemberMethod.cs
- GridViewColumnCollection.cs
- InboundActivityHelper.cs
- GenericIdentity.cs
- ToolStripSeparator.cs
- RectangleF.cs
- CustomAttributeFormatException.cs
- BitmapEffectGroup.cs
- Substitution.cs
- SchemaMapping.cs
- CustomErrorsSection.cs
- RectAnimationUsingKeyFrames.cs
- DataGridViewRowCancelEventArgs.cs
- SpellerHighlightLayer.cs
- WebControlToolBoxItem.cs
- WrapPanel.cs
- StoreAnnotationsMap.cs
- MethodInfo.cs
- Image.cs
- Int64AnimationUsingKeyFrames.cs
- Rfc2898DeriveBytes.cs
- StringResourceManager.cs
- CheckBoxRenderer.cs
- LinqDataSourceUpdateEventArgs.cs
- PropertyKey.cs
- BindingExpressionBase.cs
- Int32KeyFrameCollection.cs
- OpCodes.cs
- UserValidatedEventArgs.cs
- DispatcherExceptionEventArgs.cs
- DataGridItem.cs
- DiscreteKeyFrames.cs
- PasswordDeriveBytes.cs
- SiteMap.cs
- StorageModelBuildProvider.cs
- Missing.cs
- QilCloneVisitor.cs
- DbConnectionPoolOptions.cs
- BidOverLoads.cs
- FormsAuthentication.cs
- CollectionBase.cs
- HttpsHostedTransportConfiguration.cs
- ListViewDeleteEventArgs.cs
- TableLayoutColumnStyleCollection.cs
- DateTimeFormatInfoScanner.cs
- GeneralTransformGroup.cs
- ZipArchive.cs
- SignalGate.cs
- ParsedAttributeCollection.cs
- ConfigurationStrings.cs
- ExpressionBindingCollection.cs
- WebRequestModulesSection.cs
- SerializationStore.cs
- CheckPair.cs
- PropertyItemInternal.cs
- IsolatedStorageException.cs
- FactoryGenerator.cs
- ArgumentNullException.cs
- BaseProcessor.cs
- SqlProviderManifest.cs
- ArgumentsParser.cs
- PropertyCondition.cs
- ScriptReference.cs