Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / 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
- SqlExpander.cs
- ToolStripDropDownClosingEventArgs.cs
- PageCodeDomTreeGenerator.cs
- ComponentResourceManager.cs
- XamlBrushSerializer.cs
- CryptoApi.cs
- OrderedParallelQuery.cs
- PublishLicense.cs
- ComponentChangedEvent.cs
- OperatorExpressions.cs
- DeobfuscatingStream.cs
- SignatureToken.cs
- _ListenerAsyncResult.cs
- PingOptions.cs
- InvokePatternIdentifiers.cs
- StorageEntityTypeMapping.cs
- XmlReturnWriter.cs
- HtmlInputRadioButton.cs
- _AutoWebProxyScriptWrapper.cs
- Int16Storage.cs
- TransformationRules.cs
- RelationshipEnd.cs
- DataErrorValidationRule.cs
- PrimitiveXmlSerializers.cs
- SendingRequestEventArgs.cs
- WpfWebRequestHelper.cs
- PasswordBox.cs
- MappingModelBuildProvider.cs
- StrokeNode.cs
- IconConverter.cs
- sqlinternaltransaction.cs
- DataSourceCacheDurationConverter.cs
- ConfigurationManager.cs
- DateTimeParse.cs
- ServicesExceptionNotHandledEventArgs.cs
- PopupRootAutomationPeer.cs
- XmlValidatingReaderImpl.cs
- TableRow.cs
- SqlClientWrapperSmiStreamChars.cs
- AvTraceDetails.cs
- EpmAttributeNameBuilder.cs
- TimelineGroup.cs
- CodeSnippetStatement.cs
- Convert.cs
- SystemColors.cs
- BackgroundFormatInfo.cs
- loginstatus.cs
- OracleConnectionStringBuilder.cs
- TextRangeEditTables.cs
- RadioButtonRenderer.cs
- AstNode.cs
- ScriptResourceMapping.cs
- FixedHighlight.cs
- _ProxyRegBlob.cs
- QilScopedVisitor.cs
- IOThreadScheduler.cs
- AccessibleObject.cs
- XpsFixedDocumentReaderWriter.cs
- TreeNode.cs
- InitializeCorrelation.cs
- ProfileSection.cs
- PageFunction.cs
- TextEffect.cs
- VisualStyleRenderer.cs
- ThicknessAnimationBase.cs
- QilGenerator.cs
- RequestNavigateEventArgs.cs
- BrowserCapabilitiesCodeGenerator.cs
- EnterpriseServicesHelper.cs
- EntityDataSourceDesignerHelper.cs
- UnsafeNativeMethods.cs
- ReflectionPermission.cs
- DebugTrace.cs
- SplashScreen.cs
- RayMeshGeometry3DHitTestResult.cs
- QueryStringParameter.cs
- X509ServiceCertificateAuthenticationElement.cs
- SecurityPolicySection.cs
- PasswordTextNavigator.cs
- RuleSettings.cs
- HtmlUtf8RawTextWriter.cs
- LessThanOrEqual.cs
- TypeDelegator.cs
- ReadOnlyDictionary.cs
- BamlResourceSerializer.cs
- OLEDB_Util.cs
- Timeline.cs
- OutputCacheModule.cs
- TextFindEngine.cs
- ExclusiveCanonicalizationTransform.cs
- ToolbarAUtomationPeer.cs
- NamedPermissionSet.cs
- RegexMatchCollection.cs
- FormViewCommandEventArgs.cs
- TextDecorationUnitValidation.cs
- DrawItemEvent.cs
- HyperLinkColumn.cs
- DataGridRow.cs
- CodeGenerator.cs
- EventEntry.cs