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
- BamlMapTable.cs
- COM2IProvidePropertyBuilderHandler.cs
- odbcmetadatacollectionnames.cs
- BrowserTree.cs
- CollectionDataContractAttribute.cs
- EndpointConfigContainer.cs
- DiagnosticsConfigurationHandler.cs
- SamlNameIdentifierClaimResource.cs
- DataBoundControlHelper.cs
- EditorPart.cs
- MsmqIntegrationProcessProtocolHandler.cs
- UncommonField.cs
- DecimalStorage.cs
- EasingKeyFrames.cs
- EnumMember.cs
- ExpandCollapseIsCheckedConverter.cs
- ScriptModule.cs
- AccessDataSourceWizardForm.cs
- TextDecorationCollectionConverter.cs
- RoleBoolean.cs
- MissingMemberException.cs
- Image.cs
- IndentedWriter.cs
- HwndProxyElementProvider.cs
- CollectionViewGroupRoot.cs
- StorageModelBuildProvider.cs
- StyleXamlParser.cs
- ADMembershipUser.cs
- Point3D.cs
- assertwrapper.cs
- TextTreeTextNode.cs
- WCFModelStrings.Designer.cs
- XsdBuildProvider.cs
- PassportAuthenticationEventArgs.cs
- CacheSection.cs
- StoryFragments.cs
- PolicyValidationException.cs
- MethodAccessException.cs
- EmbeddedMailObjectsCollection.cs
- TraceData.cs
- EndpointDispatcherTable.cs
- XamlGridLengthSerializer.cs
- TypeExtensionSerializer.cs
- Viewport3DAutomationPeer.cs
- SystemUdpStatistics.cs
- FileSecurity.cs
- DataTableMapping.cs
- NegatedConstant.cs
- SelectiveScrollingGrid.cs
- ProtectedUri.cs
- RuleConditionDialog.cs
- DataSourceView.cs
- COM2ExtendedUITypeEditor.cs
- ColumnMapTranslator.cs
- FixedSOMLineRanges.cs
- XmlElementAttributes.cs
- HttpResponse.cs
- EntryPointNotFoundException.cs
- SqlRemoveConstantOrderBy.cs
- ItemCheckedEvent.cs
- TextDocumentView.cs
- StrongNameIdentityPermission.cs
- TransformCryptoHandle.cs
- AnnotationComponentChooser.cs
- Set.cs
- ColorContextHelper.cs
- ColumnHeader.cs
- VariableAction.cs
- FrameworkTemplate.cs
- DocumentDesigner.cs
- StringTraceRecord.cs
- HealthMonitoringSectionHelper.cs
- ProfileEventArgs.cs
- RayHitTestParameters.cs
- SafeNativeMethods.cs
- DNS.cs
- PageThemeParser.cs
- NamedObject.cs
- OdbcFactory.cs
- VersionConverter.cs
- VectorCollectionConverter.cs
- DictionaryContent.cs
- BrowserInteropHelper.cs
- SecurityRuntime.cs
- DataGridViewCellMouseEventArgs.cs
- QilReplaceVisitor.cs
- MsmqIntegrationSecurityElement.cs
- DispatcherObject.cs
- ReadOnlyDictionary.cs
- DigestComparer.cs
- DictionaryEntry.cs
- DataProtection.cs
- CommandID.cs
- LoadWorkflowByKeyAsyncResult.cs
- IHttpResponseInternal.cs
- QuaternionAnimationBase.cs
- NavigationPropertyEmitter.cs
- XmlEnumAttribute.cs
- RoutingConfiguration.cs
- ListViewDeletedEventArgs.cs