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
- SqlProviderUtilities.cs
- CommandHelpers.cs
- HttpWebRequest.cs
- SeekStoryboard.cs
- ItemList.cs
- BrowserCapabilitiesCodeGenerator.cs
- GroupBoxDesigner.cs
- CookieParameter.cs
- CompilerGeneratedAttribute.cs
- Soap.cs
- validationstate.cs
- TileBrush.cs
- TriState.cs
- ITextView.cs
- ProcessHostMapPath.cs
- SystemColorTracker.cs
- MeasurementDCInfo.cs
- StringResourceManager.cs
- SizeAnimationClockResource.cs
- DataServiceRequestArgs.cs
- Line.cs
- FormsAuthentication.cs
- QilLiteral.cs
- HttpWebRequestElement.cs
- RewritingSimplifier.cs
- ServiceNameElementCollection.cs
- ConfigXmlElement.cs
- EntityCommand.cs
- ConstrainedDataObject.cs
- XamlRtfConverter.cs
- MemberRelationshipService.cs
- ControlTemplate.cs
- ProxyManager.cs
- IsolatedStorageFilePermission.cs
- InternalPolicyElement.cs
- TouchesCapturedWithinProperty.cs
- FigureHelper.cs
- EventWaitHandleSecurity.cs
- ProcessThread.cs
- CheckBoxBaseAdapter.cs
- Permission.cs
- SiteMapPath.cs
- IListConverters.cs
- Script.cs
- BamlRecordReader.cs
- Memoizer.cs
- DescendantQuery.cs
- HiddenFieldDesigner.cs
- LineServices.cs
- ScrollBar.cs
- XPathNodeInfoAtom.cs
- AbstractDataSvcMapFileLoader.cs
- ParameterRefs.cs
- SqlDataSourceView.cs
- GradientBrush.cs
- DocumentViewerConstants.cs
- PassportIdentity.cs
- XhtmlConformanceSection.cs
- InheritanceContextChangedEventManager.cs
- ClientCultureInfo.cs
- SqlOuterApplyReducer.cs
- TreeNodeCollectionEditor.cs
- ForeignKeyFactory.cs
- BackStopAuthenticationModule.cs
- SystemIPGlobalStatistics.cs
- ListParagraph.cs
- XmlJsonReader.cs
- NumericExpr.cs
- EventEntry.cs
- MediaContext.cs
- DataBindingCollectionEditor.cs
- GeneralTransform3DTo2D.cs
- oledbmetadatacollectionnames.cs
- ServiceOperationDetailViewControl.cs
- SetIndexBinder.cs
- ListViewItem.cs
- AsnEncodedData.cs
- CompositeDataBoundControl.cs
- invalidudtexception.cs
- RequestCachingSection.cs
- XmlTextAttribute.cs
- DoubleLinkListEnumerator.cs
- SchemaNotation.cs
- CodeTypeReferenceCollection.cs
- X509Extension.cs
- ServiceOperation.cs
- PageStatePersister.cs
- BuildProviderCollection.cs
- XmlSchemaImport.cs
- WindowsEditBoxRange.cs
- Rotation3DAnimationUsingKeyFrames.cs
- oledbmetadatacolumnnames.cs
- SourceCollection.cs
- SQLDecimalStorage.cs
- CounterSetInstanceCounterDataSet.cs
- BreakSafeBase.cs
- DBSchemaRow.cs
- EndpointReference.cs
- IndexedEnumerable.cs
- ExpanderAutomationPeer.cs