Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / clr / src / BCL / System / Diagnostics / AssertFilter.cs / 1305376 / AssertFilter.cs
// ==++== // // Copyright (c) Microsoft Corporation. All rights reserved. // // ==--== namespace System.Diagnostics { using System; using System.Runtime.Versioning; // 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() { } [System.Security.SecuritySafeCritical] // auto-generated [ResourceExposure(ResourceScope.Process)] [ResourceConsumption(ResourceScope.Process)] public override AssertFilters AssertFailure(String condition, String message, StackTrace location) { return (AssertFilters) Assert.ShowDefaultAssertDialog (condition, message, location.ToString()); } } } // 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
- BitmapCodecInfoInternal.cs
- VoiceSynthesis.cs
- Bidi.cs
- DesignerActionList.cs
- CustomAttributeFormatException.cs
- Aes.cs
- BoundColumn.cs
- SoapHeaderAttribute.cs
- PolyBezierSegmentFigureLogic.cs
- TouchEventArgs.cs
- TextDecoration.cs
- HttpRequestTraceRecord.cs
- CustomTypeDescriptor.cs
- WebPartVerbsEventArgs.cs
- FragmentQuery.cs
- PaperSource.cs
- TypeSystemProvider.cs
- FileEnumerator.cs
- CreateRefExpr.cs
- DataGridViewCellMouseEventArgs.cs
- SqlProviderManifest.cs
- DecoderFallbackWithFailureFlag.cs
- CollectionViewGroup.cs
- Profiler.cs
- SlotInfo.cs
- MobileTemplatedControlDesigner.cs
- QueryRelOp.cs
- Size3D.cs
- XmlSchemaExporter.cs
- BinaryObjectInfo.cs
- GorillaCodec.cs
- DataGridColumnHeader.cs
- CompilationUnit.cs
- SpellerHighlightLayer.cs
- DoubleAnimation.cs
- BufferedGraphicsContext.cs
- ConstraintStruct.cs
- SafePointer.cs
- StringFreezingAttribute.cs
- X509Certificate2.cs
- StickyNoteAnnotations.cs
- DtdParser.cs
- CommandValueSerializer.cs
- OdbcCommandBuilder.cs
- ActivityCollectionMarkupSerializer.cs
- Vector3DCollectionConverter.cs
- FaultFormatter.cs
- ColumnClickEvent.cs
- Int64KeyFrameCollection.cs
- SQLInt64.cs
- SiteMapDataSourceView.cs
- ThrowHelper.cs
- HttpVersion.cs
- CommandBinding.cs
- SequenceDesigner.cs
- SafeCertificateStore.cs
- CopyAction.cs
- LeafCellTreeNode.cs
- DateTime.cs
- DataServiceBuildProvider.cs
- LoggedException.cs
- SchemaEntity.cs
- WindowInteropHelper.cs
- Byte.cs
- InfoCardTrace.cs
- CheckBoxPopupAdapter.cs
- HashAlgorithm.cs
- Constraint.cs
- DataGridColumnCollection.cs
- DataGridViewUtilities.cs
- InvariantComparer.cs
- ExtendedPropertyDescriptor.cs
- SerializationInfo.cs
- DataViewSetting.cs
- URLIdentityPermission.cs
- ApplicationManager.cs
- X509CertificateStore.cs
- ImageEditor.cs
- ChooseAction.cs
- ProfilePropertySettings.cs
- DefaultValueTypeConverter.cs
- ServiceDeploymentInfo.cs
- DataViewSettingCollection.cs
- XmlImplementation.cs
- ThreadStateException.cs
- MarshalByValueComponent.cs
- CodeTypeOfExpression.cs
- EncodingInfo.cs
- ListInitExpression.cs
- RtfToXamlReader.cs
- RichTextBoxConstants.cs
- WindowsListViewGroupSubsetLink.cs
- InternalPolicyElement.cs
- GeneralTransform3DTo2D.cs
- CompModSwitches.cs
- ServiceOperationParameter.cs
- ToolStripItemEventArgs.cs
- CreateUserWizard.cs
- CallbackValidator.cs
- StatusBarPanel.cs