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
- DbMetaDataFactory.cs
- GridViewRowEventArgs.cs
- StateMachineAction.cs
- ExceptionRoutedEventArgs.cs
- DataGridViewComboBoxCell.cs
- CallbackHandler.cs
- RegexCompiler.cs
- DirectionalLight.cs
- PartialCachingControl.cs
- BitmapEffectInputConnector.cs
- DataTemplate.cs
- StsCommunicationException.cs
- SafeArrayRankMismatchException.cs
- WhitespaceRuleLookup.cs
- PropertyDescriptor.cs
- AppDomainUnloadedException.cs
- ConfigurationSchemaErrors.cs
- TypeHelper.cs
- TextEditorTyping.cs
- CLSCompliantAttribute.cs
- ComponentEditorForm.cs
- BackgroundFormatInfo.cs
- ScrollChangedEventArgs.cs
- SystemSounds.cs
- KeyPressEvent.cs
- mongolianshape.cs
- StartUpEventArgs.cs
- HttpCacheParams.cs
- EntityDataSourceChangingEventArgs.cs
- MaxMessageSizeStream.cs
- HttpListenerContext.cs
- safex509handles.cs
- EventLogException.cs
- Interfaces.cs
- PageContentCollection.cs
- ButtonBaseAdapter.cs
- DataSourceGroupCollection.cs
- NativeMethods.cs
- MatrixStack.cs
- infer.cs
- PrintController.cs
- ECDsa.cs
- BooleanToSelectiveScrollingOrientationConverter.cs
- GlyphRun.cs
- ApplicationHost.cs
- MetabaseServerConfig.cs
- ObjectManager.cs
- MatrixTransform.cs
- RuntimeUtils.cs
- WbemException.cs
- IsolatedStorageSecurityState.cs
- VectorAnimationBase.cs
- NativeCppClassAttribute.cs
- Encoder.cs
- TextBounds.cs
- EndpointConfigContainer.cs
- AttributeUsageAttribute.cs
- NamespaceInfo.cs
- PasswordRecovery.cs
- StrokeCollectionConverter.cs
- IgnoreSectionHandler.cs
- CheckPair.cs
- CaseExpr.cs
- GridViewRow.cs
- OutputCacheModule.cs
- StringSource.cs
- HtmlGenericControl.cs
- ControlUtil.cs
- InheritanceContextHelper.cs
- MouseGestureConverter.cs
- AssemblyEvidenceFactory.cs
- OracleDataReader.cs
- Guid.cs
- ArgIterator.cs
- FrameworkRichTextComposition.cs
- LogLogRecord.cs
- WaitForChangedResult.cs
- ScriptReference.cs
- PathData.cs
- TypeConverter.cs
- ScalarType.cs
- CompressionTransform.cs
- ProfilePropertyNameValidator.cs
- DbCommandDefinition.cs
- OdbcError.cs
- EntityDataSourceStatementEditorForm.cs
- GenericXmlSecurityToken.cs
- EventItfInfo.cs
- MetadataSource.cs
- ColumnTypeConverter.cs
- CustomLineCap.cs
- Calendar.cs
- NetworkAddressChange.cs
- DesignerAttribute.cs
- Int64AnimationBase.cs
- TextRangeSerialization.cs
- AuthorizationSection.cs
- SoundPlayerAction.cs
- WebRequest.cs
- WindowsBrush.cs