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
- MouseActionValueSerializer.cs
- RuntimeWrappedException.cs
- TriggerActionCollection.cs
- DateTimeFormat.cs
- AddInContractAttribute.cs
- AsynchronousChannel.cs
- TimerEventSubscriptionCollection.cs
- GradientBrush.cs
- ScrollProviderWrapper.cs
- TabControlCancelEvent.cs
- StaticDataManager.cs
- AssociationSetEnd.cs
- EncoderNLS.cs
- SizeKeyFrameCollection.cs
- WebServiceHandler.cs
- WebPartTransformerAttribute.cs
- ToolStripButton.cs
- Int32Animation.cs
- SQLResource.cs
- GeometryDrawing.cs
- ConstraintEnumerator.cs
- ResourceWriter.cs
- DependencyPropertyHelper.cs
- OdbcException.cs
- FontCacheUtil.cs
- LiteralLink.cs
- EventDescriptor.cs
- HttpCacheParams.cs
- HwndSource.cs
- DashStyle.cs
- InputReferenceExpression.cs
- Component.cs
- IgnoreFileBuildProvider.cs
- ConsumerConnectionPointCollection.cs
- MetadataArtifactLoaderXmlReaderWrapper.cs
- KeyEventArgs.cs
- RepeaterItemCollection.cs
- RepeaterDataBoundAdapter.cs
- AssemblyInfo.cs
- TdsParserHelperClasses.cs
- ExtendedPropertyDescriptor.cs
- InternalResources.cs
- MethodCallConverter.cs
- UnhandledExceptionEventArgs.cs
- BinaryObjectInfo.cs
- GridEntry.cs
- StartUpEventArgs.cs
- XmlNodeWriter.cs
- CodeCatchClause.cs
- AuthorizationRuleCollection.cs
- GridViewColumnCollectionChangedEventArgs.cs
- QilInvokeLateBound.cs
- BitStream.cs
- ImageListImage.cs
- InternalResources.cs
- BinaryExpression.cs
- Trace.cs
- InputDevice.cs
- SecurityDocument.cs
- TdsParameterSetter.cs
- PropertySet.cs
- AggregateNode.cs
- CellTreeNodeVisitors.cs
- StrongNameUtility.cs
- _BufferOffsetSize.cs
- GlyphTypeface.cs
- LocalValueEnumerator.cs
- DrawingBrush.cs
- StringValidatorAttribute.cs
- ContextStack.cs
- ThreadSafeList.cs
- GestureRecognitionResult.cs
- OperationPickerDialog.cs
- SpeechSeg.cs
- PipelineModuleStepContainer.cs
- Soap12ProtocolReflector.cs
- Converter.cs
- TextBox.cs
- RegionInfo.cs
- XmlSerializationGeneratedCode.cs
- TransformerInfoCollection.cs
- ArrangedElementCollection.cs
- CodeTryCatchFinallyStatement.cs
- XmlUTF8TextReader.cs
- RuntimeConfigLKG.cs
- CommonObjectSecurity.cs
- ProfilePropertyMetadata.cs
- SkipStoryboardToFill.cs
- Vector3DCollectionConverter.cs
- ComMethodElementCollection.cs
- TraceLog.cs
- PlanCompiler.cs
- FrameworkTemplate.cs
- DataGridColumnHeadersPresenterAutomationPeer.cs
- OutputCacheSettingsSection.cs
- TextEditorSelection.cs
- DbCommandTree.cs
- Component.cs
- SettingsPropertyIsReadOnlyException.cs
- SchemaEntity.cs