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
- NameValuePermission.cs
- ScrollBarRenderer.cs
- SettingsContext.cs
- FileSecurity.cs
- NavigationFailedEventArgs.cs
- TimersDescriptionAttribute.cs
- ListenerAdapter.cs
- UrlPropertyAttribute.cs
- GlobalProxySelection.cs
- Point3DKeyFrameCollection.cs
- XmlObjectSerializer.cs
- SqlServer2KCompatibilityCheck.cs
- SocketElement.cs
- Subtree.cs
- WebConfigurationHost.cs
- ValidationResult.cs
- SubclassTypeValidatorAttribute.cs
- MenuRenderer.cs
- HostingMessageProperty.cs
- MetadataCacheItem.cs
- PrintDialog.cs
- WebScriptMetadataInstanceContextProvider.cs
- WmfPlaceableFileHeader.cs
- FixedSOMPage.cs
- InvokeFunc.cs
- SafeLibraryHandle.cs
- RemotingConfiguration.cs
- FocusWithinProperty.cs
- SqlDependencyListener.cs
- IxmlLineInfo.cs
- PriorityBinding.cs
- ResourceType.cs
- EventLogPermission.cs
- DependencyProperty.cs
- BitmapDecoder.cs
- COM2ExtendedUITypeEditor.cs
- SystemThemeKey.cs
- ProgramNode.cs
- COM2ComponentEditor.cs
- GenericXmlSecurityToken.cs
- EdmItemError.cs
- CLRBindingWorker.cs
- SeparatorAutomationPeer.cs
- URL.cs
- RadioButtonList.cs
- CalculatedColumn.cs
- TableProviderWrapper.cs
- CheckBoxList.cs
- DataObjectCopyingEventArgs.cs
- SqlClientMetaDataCollectionNames.cs
- TemplatedMailWebEventProvider.cs
- WebPartHeaderCloseVerb.cs
- EntityDesignerBuildProvider.cs
- ToolBar.cs
- ProtocolsConfiguration.cs
- MetadataUtilsSmi.cs
- StorageTypeMapping.cs
- RichTextBoxAutomationPeer.cs
- XNodeValidator.cs
- Descriptor.cs
- FileStream.cs
- CqlParser.cs
- SerialPort.cs
- XmlWellformedWriter.cs
- SplayTreeNode.cs
- PointCollectionConverter.cs
- FlowDocument.cs
- PermissionAttributes.cs
- TreeNodeBinding.cs
- WinFormsSecurity.cs
- StringExpressionSet.cs
- InputScopeNameConverter.cs
- HostExecutionContextManager.cs
- CalendarButtonAutomationPeer.cs
- Component.cs
- AppDomainFactory.cs
- XhtmlConformanceSection.cs
- SamlAuthenticationStatement.cs
- DrawingServices.cs
- OperationDescriptionCollection.cs
- ComponentChangedEvent.cs
- FtpRequestCacheValidator.cs
- JsonUriDataContract.cs
- CheckBoxList.cs
- TargetException.cs
- HighlightVisual.cs
- X509SecurityToken.cs
- DataTemplateSelector.cs
- SchemaObjectWriter.cs
- ReflectionHelper.cs
- SpnegoTokenAuthenticator.cs
- WebPartAddingEventArgs.cs
- SqlConnectionPoolGroupProviderInfo.cs
- TimeoutValidationAttribute.cs
- Keywords.cs
- MarkupExtensionParser.cs
- CodeConstructor.cs
- AppearanceEditorPart.cs
- DoubleConverter.cs
- Msec.cs