Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / ndp / fx / src / CompMod / System / CodeDOM / CodeCatchClauseCollection.cs / 1 / CodeCatchClauseCollection.cs
// ------------------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
// -----------------------------------------------------------------------------
//
namespace System.CodeDom {
using System;
using System.Collections;
using System.Runtime.InteropServices;
///
///
/// A collection that stores objects.
///
///
[
ClassInterface(ClassInterfaceType.AutoDispatch),
ComVisible(true),
Serializable,
]
public class CodeCatchClauseCollection : CollectionBase {
///
///
/// Initializes a new instance of .
///
///
public CodeCatchClauseCollection() {
}
///
///
/// Initializes a new instance of based on another .
///
///
public CodeCatchClauseCollection(CodeCatchClauseCollection value) {
this.AddRange(value);
}
///
///
/// Initializes a new instance of containing any array of objects.
///
///
public CodeCatchClauseCollection(CodeCatchClause[] value) {
this.AddRange(value);
}
///
/// Represents the entry at the specified index of the .
///
public CodeCatchClause this[int index] {
get {
return ((CodeCatchClause)(List[index]));
}
set {
List[index] = value;
}
}
///
/// Adds a with the specified value to the
/// .
///
public int Add(CodeCatchClause value) {
return List.Add(value);
}
///
/// Copies the elements of an array to the end of the .
///
public void AddRange(CodeCatchClause[] value) {
if (value == null) {
throw new ArgumentNullException("value");
}
for (int i = 0; ((i) < (value.Length)); i = ((i) + (1))) {
this.Add(value[i]);
}
}
///
///
/// Adds the contents of another to the end of the collection.
///
///
public void AddRange(CodeCatchClauseCollection value) {
if (value == null) {
throw new ArgumentNullException("value");
}
int currentCount = value.Count;
for (int i = 0; i < currentCount; i = ((i) + (1))) {
this.Add(value[i]);
}
}
///
/// Gets a value indicating whether the
/// contains the specified .
///
public bool Contains(CodeCatchClause value) {
return List.Contains(value);
}
///
/// Copies the values to a one-dimensional instance at the
/// specified index.
///
public void CopyTo(CodeCatchClause[] array, int index) {
List.CopyTo(array, index);
}
///
/// Returns the index of a in
/// the .
///
public int IndexOf(CodeCatchClause value) {
return List.IndexOf(value);
}
///
/// Inserts a into the at the specified index.
///
public void Insert(int index, CodeCatchClause value) {
List.Insert(index, value);
}
///
/// Removes a specific from the
/// .
///
public void Remove(CodeCatchClause value) {
List.Remove(value);
}
}
}
// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
// ------------------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
// -----------------------------------------------------------------------------
//
namespace System.CodeDom {
using System;
using System.Collections;
using System.Runtime.InteropServices;
///
///
/// A collection that stores objects.
///
///
[
ClassInterface(ClassInterfaceType.AutoDispatch),
ComVisible(true),
Serializable,
]
public class CodeCatchClauseCollection : CollectionBase {
///
///
/// Initializes a new instance of .
///
///
public CodeCatchClauseCollection() {
}
///
///
/// Initializes a new instance of based on another .
///
///
public CodeCatchClauseCollection(CodeCatchClauseCollection value) {
this.AddRange(value);
}
///
///
/// Initializes a new instance of containing any array of objects.
///
///
public CodeCatchClauseCollection(CodeCatchClause[] value) {
this.AddRange(value);
}
///
/// Represents the entry at the specified index of the .
///
public CodeCatchClause this[int index] {
get {
return ((CodeCatchClause)(List[index]));
}
set {
List[index] = value;
}
}
///
/// Adds a with the specified value to the
/// .
///
public int Add(CodeCatchClause value) {
return List.Add(value);
}
///
/// Copies the elements of an array to the end of the .
///
public void AddRange(CodeCatchClause[] value) {
if (value == null) {
throw new ArgumentNullException("value");
}
for (int i = 0; ((i) < (value.Length)); i = ((i) + (1))) {
this.Add(value[i]);
}
}
///
///
/// Adds the contents of another to the end of the collection.
///
///
public void AddRange(CodeCatchClauseCollection value) {
if (value == null) {
throw new ArgumentNullException("value");
}
int currentCount = value.Count;
for (int i = 0; i < currentCount; i = ((i) + (1))) {
this.Add(value[i]);
}
}
///
/// Gets a value indicating whether the
/// contains the specified .
///
public bool Contains(CodeCatchClause value) {
return List.Contains(value);
}
///
/// Copies the values to a one-dimensional instance at the
/// specified index.
///
public void CopyTo(CodeCatchClause[] array, int index) {
List.CopyTo(array, index);
}
///
/// Returns the index of a in
/// the .
///
public int IndexOf(CodeCatchClause value) {
return List.IndexOf(value);
}
///
/// Inserts a into the at the specified index.
///
public void Insert(int index, CodeCatchClause value) {
List.Insert(index, value);
}
///
/// Removes a specific from the
/// .
///
public void Remove(CodeCatchClause value) {
List.Remove(value);
}
}
}
// 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
- SimpleType.cs
- FreezableDefaultValueFactory.cs
- DataObjectEventArgs.cs
- XamlLoadErrorInfo.cs
- VariableDesigner.xaml.cs
- ExecutionEngineException.cs
- ContextMenu.cs
- SizeChangedInfo.cs
- WindowsAuthenticationEventArgs.cs
- Transform3DGroup.cs
- ComIntegrationManifestGenerator.cs
- ContentDisposition.cs
- ProfessionalColorTable.cs
- InheritanceContextHelper.cs
- WorkflowPersistenceService.cs
- ItemsChangedEventArgs.cs
- DataSysAttribute.cs
- ServiceParser.cs
- ClockController.cs
- DocumentReference.cs
- ElementNotEnabledException.cs
- DesignBindingPropertyDescriptor.cs
- WithStatement.cs
- TransactedReceiveScope.cs
- ManagedWndProcTracker.cs
- EntityContainerEntitySet.cs
- ArraySortHelper.cs
- SafeFreeMibTable.cs
- AttributeAction.cs
- DocumentPaginator.cs
- DataObjectAttribute.cs
- UnsafeNativeMethods.cs
- CheckBox.cs
- ToolZone.cs
- Currency.cs
- ButtonPopupAdapter.cs
- SchemaUtility.cs
- UpdateException.cs
- TableHeaderCell.cs
- cookie.cs
- webclient.cs
- Constants.cs
- SatelliteContractVersionAttribute.cs
- GeneratedContractType.cs
- LinqExpressionNormalizer.cs
- ToolStripPanelSelectionGlyph.cs
- LiteralLink.cs
- Timer.cs
- ArgumentException.cs
- ParserContext.cs
- ChainOfResponsibility.cs
- DataPagerFieldCommandEventArgs.cs
- XmlIlVisitor.cs
- UIElement.cs
- PTConverter.cs
- StylusPointPropertyUnit.cs
- DataGridViewColumnHeaderCell.cs
- CacheChildrenQuery.cs
- RealizationDrawingContextWalker.cs
- ParallelTimeline.cs
- Pkcs9Attribute.cs
- Msec.cs
- TemplateControl.cs
- SiteMapDataSource.cs
- TdsValueSetter.cs
- SqlTrackingWorkflowInstance.cs
- DetailsViewCommandEventArgs.cs
- COM2ExtendedUITypeEditor.cs
- RichTextBox.cs
- SmtpAuthenticationManager.cs
- ObjectTag.cs
- CollectionsUtil.cs
- SettingsSection.cs
- ProfileProvider.cs
- XmlMemberMapping.cs
- HwndSource.cs
- XMLSyntaxException.cs
- TemplatePropertyEntry.cs
- Environment.cs
- CodeTypeMember.cs
- IdentityReference.cs
- GenericRootAutomationPeer.cs
- Point3DCollectionConverter.cs
- SourceChangedEventArgs.cs
- AnimatedTypeHelpers.cs
- SynthesizerStateChangedEventArgs.cs
- XmlAggregates.cs
- MatrixTransform.cs
- BitmapSourceSafeMILHandle.cs
- PasswordTextContainer.cs
- ClientUrlResolverWrapper.cs
- AppSettingsReader.cs
- ThreadExceptionDialog.cs
- Visitor.cs
- VisualTreeUtils.cs
- Menu.cs
- FigureHelper.cs
- URL.cs
- Terminate.cs
- PrefixHandle.cs