Code:
/ FXUpdate3074 / FXUpdate3074 / 1.1 / untmp / whidbey / QFE / 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 assertt 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 assertt 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- DataPager.cs
- ConfigurationElementProperty.cs
- XhtmlMobileTextWriter.cs
- SystemSounds.cs
- ActiveDocumentEvent.cs
- ThrowHelper.cs
- InheritablePropertyChangeInfo.cs
- MethodSignatureGenerator.cs
- HTTP_SERVICE_CONFIG_URLACL_KEY.cs
- XmlnsDictionary.cs
- ParenthesizePropertyNameAttribute.cs
- DropShadowEffect.cs
- PublisherMembershipCondition.cs
- RegexMatchCollection.cs
- InArgumentConverter.cs
- ConnectionPoolManager.cs
- MarkupExtensionParser.cs
- AspCompat.cs
- CodeTypeConstructor.cs
- HostingEnvironmentException.cs
- ColorKeyFrameCollection.cs
- mansign.cs
- Point3DIndependentAnimationStorage.cs
- _AutoWebProxyScriptHelper.cs
- NullableConverter.cs
- HandlerFactoryWrapper.cs
- CustomUserNameSecurityTokenAuthenticator.cs
- LocalBuilder.cs
- InstancePersistenceCommandException.cs
- CapabilitiesState.cs
- SecondaryIndex.cs
- SecurityTokenProviderContainer.cs
- FileLevelControlBuilderAttribute.cs
- DictionaryEntry.cs
- XmlSchemaValidator.cs
- CalendarDay.cs
- HGlobalSafeHandle.cs
- RelationshipSet.cs
- ControlDesigner.cs
- X509AsymmetricSecurityKey.cs
- HeaderLabel.cs
- OverflowException.cs
- NameValueFileSectionHandler.cs
- SynchronizationLockException.cs
- OdbcDataReader.cs
- MaskedTextBoxDesigner.cs
- UnionCodeGroup.cs
- XD.cs
- CopyNodeSetAction.cs
- XmlSchemaSimpleContentRestriction.cs
- ClientTargetSection.cs
- RTTypeWrapper.cs
- BigInt.cs
- XPathDocumentNavigator.cs
- TagPrefixAttribute.cs
- DescendantOverDescendantQuery.cs
- DashStyles.cs
- CompositeDataBoundControl.cs
- ArrangedElementCollection.cs
- ByteFacetDescriptionElement.cs
- ToolboxComponentsCreatingEventArgs.cs
- XmlnsCache.cs
- TableRow.cs
- LogicalChannel.cs
- FlowDocumentReader.cs
- Stack.cs
- ObjectPropertyMapping.cs
- CompositeDataBoundControl.cs
- CriticalFinalizerObject.cs
- IsolatedStorageFile.cs
- ItemsChangedEventArgs.cs
- XmlRootAttribute.cs
- CollectionView.cs
- EllipseGeometry.cs
- XPathEmptyIterator.cs
- EdmToObjectNamespaceMap.cs
- Metafile.cs
- UnsafeNativeMethods.cs
- TypeDelegator.cs
- TextBoxLine.cs
- SetterBaseCollection.cs
- filewebresponse.cs
- ConfigsHelper.cs
- DrawingImage.cs
- AudioSignalProblemOccurredEventArgs.cs
- SqlBuffer.cs
- XmlAutoDetectWriter.cs
- HttpWebRequest.cs
- FtpRequestCacheValidator.cs
- DesignerLinkAdapter.cs
- ImageButton.cs
- Schedule.cs
- EntityContainerEmitter.cs
- EntityContainerEmitter.cs
- AuthenticationModulesSection.cs
- EventSourceCreationData.cs
- StreamUpgradeBindingElement.cs
- FileLogRecordHeader.cs
- QualifiedCellIdBoolean.cs
- PerformanceCounterManager.cs