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
- XmlSchemaObjectTable.cs
- XmlQueryStaticData.cs
- ToolStripDropDownClosingEventArgs.cs
- DataGridViewSelectedRowCollection.cs
- CapabilitiesPattern.cs
- SafeTimerHandle.cs
- ControlValuePropertyAttribute.cs
- GeometryCombineModeValidation.cs
- QilInvoke.cs
- RemotingConfigParser.cs
- ClientTargetSection.cs
- DoubleLinkListEnumerator.cs
- DataSourceXmlSubItemAttribute.cs
- DocumentReferenceCollection.cs
- CommandManager.cs
- XmlSchemaValidationException.cs
- SelectionListDesigner.cs
- SafeUserTokenHandle.cs
- SqlUserDefinedAggregateAttribute.cs
- webeventbuffer.cs
- RepeaterCommandEventArgs.cs
- CodePageUtils.cs
- returneventsaver.cs
- GridViewSelectEventArgs.cs
- TextLineResult.cs
- XmlBinaryWriterSession.cs
- QilScopedVisitor.cs
- indexingfiltermarshaler.cs
- DescendentsWalkerBase.cs
- UpdateCommand.cs
- XPathItem.cs
- XmlDocumentSerializer.cs
- SeekStoryboard.cs
- XamlPointCollectionSerializer.cs
- ConvertersCollection.cs
- CodeDomLocalizationProvider.cs
- XmlUtil.cs
- UriExt.cs
- FSWPathEditor.cs
- HandleScope.cs
- FontFamilyConverter.cs
- OutputCacheProfile.cs
- RegexStringValidatorAttribute.cs
- FieldNameLookup.cs
- HttpTransportBindingElement.cs
- SafeCloseHandleCritical.cs
- CookieProtection.cs
- TriState.cs
- RowParagraph.cs
- SafeHandles.cs
- StringOutput.cs
- XmlSchemaExternal.cs
- ConnectionConsumerAttribute.cs
- CommentGlyph.cs
- AssemblyBuilderData.cs
- SuppressMessageAttribute.cs
- GlyphInfoList.cs
- XmlRootAttribute.cs
- XmlSchemaValidationException.cs
- VariableQuery.cs
- _ServiceNameStore.cs
- RawKeyboardInputReport.cs
- SafeCryptoKeyHandle.cs
- QueryOutputWriter.cs
- PrePrepareMethodAttribute.cs
- MetadataArtifactLoaderXmlReaderWrapper.cs
- Graphics.cs
- IImplicitResourceProvider.cs
- SerializableTypeCodeDomSerializer.cs
- HasCopySemanticsAttribute.cs
- SchemaComplexType.cs
- Tuple.cs
- PieceDirectory.cs
- lengthconverter.cs
- _AuthenticationState.cs
- LingerOption.cs
- HttpProfileGroupBase.cs
- InstanceNormalEvent.cs
- NumberFormatter.cs
- XmlCountingReader.cs
- FileInfo.cs
- DbReferenceCollection.cs
- XmlSchemaCollection.cs
- Rotation3DKeyFrameCollection.cs
- XNodeValidator.cs
- CaseExpr.cs
- CngKeyCreationParameters.cs
- Sentence.cs
- CodeIdentifier.cs
- LambdaReference.cs
- SafePointer.cs
- DataDesignUtil.cs
- FontSourceCollection.cs
- AssemblyCache.cs
- RtfControlWordInfo.cs
- Substitution.cs
- QueryableFilterRepeater.cs
- ProjectionPathBuilder.cs
- CompatibleComparer.cs
- coordinatorscratchpad.cs