Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / 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
- ProfileParameter.cs
- MimeMultiPart.cs
- Transactions.cs
- FrugalList.cs
- NGCSerializerAsync.cs
- CollectionView.cs
- BidirectionalDictionary.cs
- DataIdProcessor.cs
- CheckBoxStandardAdapter.cs
- XmlKeywords.cs
- LookupNode.cs
- LoaderAllocator.cs
- GlyphCollection.cs
- AssemblyBuilderData.cs
- InternalConfigHost.cs
- Panel.cs
- UInt32Converter.cs
- TaskDesigner.cs
- TableLayoutPanel.cs
- ThicknessAnimationUsingKeyFrames.cs
- ObjectReaderCompiler.cs
- CodeNamespaceImport.cs
- UseAttributeSetsAction.cs
- TypeSemantics.cs
- XmlMtomWriter.cs
- MessageEncoderFactory.cs
- MissingManifestResourceException.cs
- DesignerPerfEventProvider.cs
- PerspectiveCamera.cs
- Byte.cs
- WindowsHyperlink.cs
- MetadataException.cs
- _DynamicWinsockMethods.cs
- MeasureItemEvent.cs
- ProfileSettings.cs
- ObjectListDesigner.cs
- NavigationPropertyEmitter.cs
- SID.cs
- Brushes.cs
- SqlException.cs
- PropertyValueUIItem.cs
- ConnectionStringSettingsCollection.cs
- KnownTypeAttribute.cs
- ContextMenuStrip.cs
- IPAddressCollection.cs
- TranslateTransform3D.cs
- WorkflowService.cs
- DllNotFoundException.cs
- SqlOuterApplyReducer.cs
- FontResourceCache.cs
- AssemblyContextControlItem.cs
- RowBinding.cs
- UniqueIdentifierService.cs
- Activity.cs
- QilInvokeEarlyBound.cs
- RegexTree.cs
- messageonlyhwndwrapper.cs
- UnsafeNativeMethodsTablet.cs
- FunctionUpdateCommand.cs
- FigureParagraph.cs
- ConnectionManagementElementCollection.cs
- IRCollection.cs
- DemultiplexingClientMessageFormatter.cs
- LogManagementAsyncResult.cs
- HGlobalSafeHandle.cs
- HwndKeyboardInputProvider.cs
- ApplicationSecurityInfo.cs
- PageCodeDomTreeGenerator.cs
- InputProviderSite.cs
- LiteralDesigner.cs
- PageThemeCodeDomTreeGenerator.cs
- FileReservationCollection.cs
- SchemaNames.cs
- ValueTypeFixupInfo.cs
- Section.cs
- FlowDocumentView.cs
- SafeArrayTypeMismatchException.cs
- Lease.cs
- XmlSchemaObjectTable.cs
- DelegateSerializationHolder.cs
- LinkConverter.cs
- ComplexObject.cs
- UiaCoreProviderApi.cs
- PriorityRange.cs
- ManipulationStartedEventArgs.cs
- Suspend.cs
- XmlHierarchicalEnumerable.cs
- CancellationTokenRegistration.cs
- CreateUserWizard.cs
- DynamicPropertyHolder.cs
- Query.cs
- log.cs
- Int32CAMarshaler.cs
- SchemaMapping.cs
- ServerType.cs
- MenuAutomationPeer.cs
- TraceEventCache.cs
- SystemSounds.cs
- HttpProtocolReflector.cs
- PhysicalAddress.cs