Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / wpf / src / Base / MS / Internal / CriticalExceptions.cs / 1 / CriticalExceptions.cs
using System; #if PBTCOMPILER namespace MS.Internal.Markup #else using MS.Internal.WindowsBase; // FriendAccessAllowed namespace MS.Internal #endif { #if !PBTCOMPILER [FriendAccessAllowed] #endif internal static class CriticalExceptions { #if !PBTCOMPILER [FriendAccessAllowed] #endif internal static bool IsCriticalException(Exception ex) { return ex is NullReferenceException || ex is StackOverflowException || ex is OutOfMemoryException || ex is System.Threading.ThreadAbortException || ex is System.Runtime.InteropServices.SEHException || ex is System.Security.SecurityException; } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved. using System; #if PBTCOMPILER namespace MS.Internal.Markup #else using MS.Internal.WindowsBase; // FriendAccessAllowed namespace MS.Internal #endif { #if !PBTCOMPILER [FriendAccessAllowed] #endif internal static class CriticalExceptions { #if !PBTCOMPILER [FriendAccessAllowed] #endif internal static bool IsCriticalException(Exception ex) { return ex is NullReferenceException || ex is StackOverflowException || ex is OutOfMemoryException || ex is System.Threading.ThreadAbortException || ex is System.Runtime.InteropServices.SEHException || ex is System.Security.SecurityException; } } } // 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
- DropSource.cs
- hwndwrapper.cs
- HelpInfo.cs
- hresults.cs
- CalendarDateRange.cs
- PageHandlerFactory.cs
- BaseValidator.cs
- DataGridTextBoxColumn.cs
- MatrixAnimationBase.cs
- BitmapEffectDrawing.cs
- JavaScriptSerializer.cs
- EdmFunction.cs
- ApplyImportsAction.cs
- RunWorkerCompletedEventArgs.cs
- Boolean.cs
- ButtonFieldBase.cs
- WeakEventManager.cs
- SamlSubjectStatement.cs
- SqlConnectionPoolGroupProviderInfo.cs
- serverconfig.cs
- StructuredTypeEmitter.cs
- WebFormsRootDesigner.cs
- ToolboxComponentsCreatedEventArgs.cs
- CatalogZone.cs
- TableNameAttribute.cs
- MenuItemAutomationPeer.cs
- Style.cs
- MetadataSource.cs
- XmlSchemaChoice.cs
- UserControlFileEditor.cs
- AutomationElementCollection.cs
- ComboBox.cs
- DelegateSerializationHolder.cs
- SizeAnimationClockResource.cs
- TreeNodeStyleCollection.cs
- OnOperation.cs
- SessionEndingCancelEventArgs.cs
- ImagingCache.cs
- AnnotationAuthorChangedEventArgs.cs
- SHA1CryptoServiceProvider.cs
- ErrorTolerantObjectWriter.cs
- ClientConfigurationSystem.cs
- BuildProvider.cs
- MailWebEventProvider.cs
- SecurityTraceRecordHelper.cs
- PasswordRecovery.cs
- Axis.cs
- PartitionResolver.cs
- ComponentCollection.cs
- JsonFormatReaderGenerator.cs
- Stack.cs
- DbProviderSpecificTypePropertyAttribute.cs
- JoinCqlBlock.cs
- Setter.cs
- ResXBuildProvider.cs
- PeerMessageDispatcher.cs
- Animatable.cs
- SqlBulkCopyColumnMappingCollection.cs
- Byte.cs
- HierarchicalDataBoundControlAdapter.cs
- BasicHttpBinding.cs
- LocalServiceSecuritySettings.cs
- _NestedMultipleAsyncResult.cs
- MemberAccessException.cs
- InfoCardBaseException.cs
- CachedTypeface.cs
- HierarchicalDataBoundControl.cs
- ConfigurationProperty.cs
- QilDataSource.cs
- CodePageEncoding.cs
- ServerValidateEventArgs.cs
- RegionInfo.cs
- DtdParser.cs
- RequestChannel.cs
- SmtpFailedRecipientsException.cs
- InvalidOperationException.cs
- UIHelper.cs
- ImageCodecInfo.cs
- LinkUtilities.cs
- AssemblyAttributesGoHere.cs
- XPathNode.cs
- SqlTransaction.cs
- ListBoxItem.cs
- EventMappingSettingsCollection.cs
- HwndSourceKeyboardInputSite.cs
- WinFormsSecurity.cs
- Compress.cs
- XmlAtomicValue.cs
- MenuScrollingVisibilityConverter.cs
- XmlSerializationReader.cs
- SiteMapProvider.cs
- SecurityCriticalDataForSet.cs
- NetSectionGroup.cs
- FigureParagraph.cs
- WinEventTracker.cs
- XPathCompiler.cs
- ProxyElement.cs
- WebPartPersonalization.cs
- ListGeneralPage.cs
- UserControl.cs