Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / ndp / clr / src / BCL / System / IndexOutOfRangeException.cs / 1 / 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
- IIS7UserPrincipal.cs
- Debugger.cs
- OleDbStruct.cs
- DispatchChannelSink.cs
- BindingListCollectionView.cs
- ListView.cs
- ToggleButton.cs
- AuthenticateEventArgs.cs
- AspNetHostingPermission.cs
- JavaScriptObjectDeserializer.cs
- IPGlobalProperties.cs
- LinearKeyFrames.cs
- ColorComboBox.cs
- TraceContext.cs
- PageVisual.cs
- CompositeScriptReference.cs
- SrgsRule.cs
- AbsoluteQuery.cs
- OpenTypeLayoutCache.cs
- ObjectListFieldsPage.cs
- SystemFonts.cs
- GeneralTransform.cs
- HttpCookieCollection.cs
- SystemColors.cs
- XslException.cs
- DoubleStorage.cs
- MatrixTransform3D.cs
- FormatterServices.cs
- TraceSection.cs
- Type.cs
- ArraySubsetEnumerator.cs
- CreateParams.cs
- DocumentPage.cs
- WrapPanel.cs
- KeyBinding.cs
- StructuredTypeEmitter.cs
- MappingSource.cs
- FixedNode.cs
- XmlILIndex.cs
- BindingWorker.cs
- CommandDevice.cs
- NumericExpr.cs
- XmlSchemaSimpleContentRestriction.cs
- SqlRecordBuffer.cs
- Helper.cs
- assertwrapper.cs
- AccessDataSourceView.cs
- DbParameterHelper.cs
- PageCatalogPart.cs
- BufferBuilder.cs
- AuthenticationService.cs
- ZipIOLocalFileHeader.cs
- ResourceReader.cs
- DataColumnSelectionConverter.cs
- PerspectiveCamera.cs
- CategoryGridEntry.cs
- CreateUserWizardStep.cs
- ConnectivityStatus.cs
- FlowDocument.cs
- ElementsClipboardData.cs
- BinaryConverter.cs
- ResXDataNode.cs
- ProxyWebPartManager.cs
- XmlObjectSerializer.cs
- RepeatButton.cs
- AuthenticationService.cs
- StartUpEventArgs.cs
- Pair.cs
- ToolZone.cs
- DataSourceCacheDurationConverter.cs
- XmlSchemaSimpleType.cs
- Helpers.cs
- Rect3DValueSerializer.cs
- DocComment.cs
- AssemblyNameProxy.cs
- RoleGroupCollection.cs
- BeginStoryboard.cs
- SqlErrorCollection.cs
- SystemIPGlobalStatistics.cs
- ISAPIWorkerRequest.cs
- MyContact.cs
- XamlNamespaceHelper.cs
- CopyNamespacesAction.cs
- DesignOnlyAttribute.cs
- TextTreeObjectNode.cs
- ArrayTypeMismatchException.cs
- DataGridItemCollection.cs
- Guid.cs
- FrameDimension.cs
- WpfMemberInvoker.cs
- KeyFrames.cs
- TextParentUndoUnit.cs
- ObjectToken.cs
- ApplicationGesture.cs
- HtmlUtf8RawTextWriter.cs
- CollectionViewSource.cs
- StylusButtonCollection.cs
- DataGridColumn.cs
- TextSpanModifier.cs
- MeasurementDCInfo.cs