Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / clr / src / BCL / System / IndexOutOfRangeException.cs / 1305376 / IndexOutOfRangeException.cs
// ==++== // // Copyright (c) Microsoft Corporation. All rights reserved. // // ==--== /*============================================================================== ** ** Class: IndexOutOfRangeException ** ** ** Purpose: Exception class for invalid array indices. ** ** =============================================================================*/ namespace System { using System; using System.Runtime.Serialization; [System.Runtime.InteropServices.ComVisible(true)] [Serializable] public sealed class IndexOutOfRangeException : SystemException { public IndexOutOfRangeException() : base(Environment.GetResourceString("Arg_IndexOutOfRangeException")) { SetErrorCode(__HResults.COR_E_INDEXOUTOFRANGE); } public IndexOutOfRangeException(String message) : base(message) { SetErrorCode(__HResults.COR_E_INDEXOUTOFRANGE); } public IndexOutOfRangeException(String message, Exception innerException) : base(message, innerException) { SetErrorCode(__HResults.COR_E_INDEXOUTOFRANGE); } internal IndexOutOfRangeException(SerializationInfo info, StreamingContext context) : base(info, context) { } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // ==++== // // Copyright (c) Microsoft Corporation. All rights reserved. // // ==--== /*============================================================================== ** ** Class: IndexOutOfRangeException ** ** ** Purpose: Exception class for invalid array indices. ** ** =============================================================================*/ namespace System { using System; using System.Runtime.Serialization; [System.Runtime.InteropServices.ComVisible(true)] [Serializable] public sealed class IndexOutOfRangeException : SystemException { public IndexOutOfRangeException() : base(Environment.GetResourceString("Arg_IndexOutOfRangeException")) { SetErrorCode(__HResults.COR_E_INDEXOUTOFRANGE); } public IndexOutOfRangeException(String message) : base(message) { SetErrorCode(__HResults.COR_E_INDEXOUTOFRANGE); } public IndexOutOfRangeException(String message, Exception innerException) : base(message, innerException) { SetErrorCode(__HResults.COR_E_INDEXOUTOFRANGE); } internal IndexOutOfRangeException(SerializationInfo info, StreamingContext context) : base(info, context) { } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- ObjectDisposedException.cs
- TextEditorCharacters.cs
- BaseProcessor.cs
- FileDialogPermission.cs
- DataGridCellsPanel.cs
- GAC.cs
- X509AsymmetricSecurityKey.cs
- RefreshEventArgs.cs
- mda.cs
- PerspectiveCamera.cs
- WebPartZone.cs
- SoapBinding.cs
- MatrixCamera.cs
- ListItemCollection.cs
- ExpressionCopier.cs
- TextSegment.cs
- SoapRpcMethodAttribute.cs
- DataGridViewHitTestInfo.cs
- ApplicationManager.cs
- FormClosingEvent.cs
- ActivitiesCollection.cs
- WebPartTransformerAttribute.cs
- RowVisual.cs
- EntityDesignerDataSourceView.cs
- TabControlCancelEvent.cs
- DataSourceView.cs
- XmlSchemaSimpleTypeRestriction.cs
- GridPatternIdentifiers.cs
- SqlCacheDependencyDatabaseCollection.cs
- SchemaLookupTable.cs
- VariableAction.cs
- DataSetFieldSchema.cs
- AutomationElementIdentifiers.cs
- UnsafeNativeMethods.cs
- EditorPart.cs
- SortKey.cs
- HttpContextBase.cs
- FormsIdentity.cs
- OdbcConnectionString.cs
- SourceLocation.cs
- SetterBase.cs
- PrivilegeNotHeldException.cs
- MenuItemStyle.cs
- XslCompiledTransform.cs
- PreviewPageInfo.cs
- PropertyItemInternal.cs
- ValidatingReaderNodeData.cs
- DefaultObjectMappingItemCollection.cs
- ObjectTypeMapping.cs
- DiffuseMaterial.cs
- COMException.cs
- SafeBitVector32.cs
- DesignerVerb.cs
- UnlockInstanceCommand.cs
- DataServices.cs
- SymbolType.cs
- CacheRequest.cs
- RegexRunner.cs
- SerialErrors.cs
- PathFigure.cs
- DBSqlParserTable.cs
- DBSchemaTable.cs
- PropertyPath.cs
- MethodBuilder.cs
- RenderingBiasValidation.cs
- DictionaryEntry.cs
- Viewport3DAutomationPeer.cs
- SqlRetyper.cs
- BamlLocalizationDictionary.cs
- WSHttpBinding.cs
- ActivityExecutionFilter.cs
- COM2ICategorizePropertiesHandler.cs
- WindowsPen.cs
- ObjectAnimationBase.cs
- HitTestWithGeometryDrawingContextWalker.cs
- Keyboard.cs
- _NTAuthentication.cs
- TextTreeNode.cs
- FileDialogPermission.cs
- MatrixAnimationUsingPath.cs
- SqlNodeAnnotations.cs
- clipboard.cs
- NameValueConfigurationElement.cs
- ConnectionManagementElement.cs
- FrameDimension.cs
- SessionPageStatePersister.cs
- CanExecuteRoutedEventArgs.cs
- TypeUtil.cs
- XmlMtomWriter.cs
- NavigateEvent.cs
- MobileErrorInfo.cs
- GlyphShapingProperties.cs
- hwndwrapper.cs
- DocumentReferenceCollection.cs
- DefinitionProperties.cs
- ActiveXContainer.cs
- GlyphingCache.cs
- EventWaitHandle.cs
- ResourceType.cs
- OrderByBuilder.cs