Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / CompMod / System / CodeDOM / CodeAttributeDeclarationCollection.cs / 1305376 / CodeAttributeDeclarationCollection.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 CodeAttributeDeclarationCollection : CollectionBase {
///
///
/// Initializes a new instance of .
///
///
public CodeAttributeDeclarationCollection() {
}
///
///
/// Initializes a new instance of based on another .
///
///
public CodeAttributeDeclarationCollection(CodeAttributeDeclarationCollection value) {
this.AddRange(value);
}
///
///
/// Initializes a new instance of containing any array of objects.
///
///
public CodeAttributeDeclarationCollection(CodeAttributeDeclaration[] value) {
this.AddRange(value);
}
///
/// Represents the entry at the specified index of the .
///
public CodeAttributeDeclaration this[int index] {
get {
return ((CodeAttributeDeclaration)(List[index]));
}
set {
List[index] = value;
}
}
///
/// Adds a with the specified value to the
/// .
///
public int Add(CodeAttributeDeclaration value) {
return List.Add(value);
}
///
/// Copies the elements of an array to the end of the .
///
public void AddRange(CodeAttributeDeclaration[] 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(CodeAttributeDeclarationCollection 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(CodeAttributeDeclaration value) {
return List.Contains(value);
}
///
/// Copies the values to a one-dimensional instance at the
/// specified index.
///
public void CopyTo(CodeAttributeDeclaration[] array, int index) {
List.CopyTo(array, index);
}
///
/// Returns the index of a in
/// the .
///
public int IndexOf(CodeAttributeDeclaration value) {
return List.IndexOf(value);
}
///
/// Inserts a into the at the specified index.
///
public void Insert(int index, CodeAttributeDeclaration value) {
List.Insert(index, value);
}
///
/// Removes a specific from the
/// .
///
public void Remove(CodeAttributeDeclaration 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
- IImplicitResourceProvider.cs
- LineGeometry.cs
- HttpCookiesSection.cs
- EmptyStringExpandableObjectConverter.cs
- PaintEvent.cs
- GridErrorDlg.cs
- TaskFormBase.cs
- ParameterEditorUserControl.cs
- TerminatorSinks.cs
- EmissiveMaterial.cs
- OutputCache.cs
- TemplateControlBuildProvider.cs
- TimelineGroup.cs
- SystemSounds.cs
- QfeChecker.cs
- ExpressionNode.cs
- EntityCollection.cs
- HttpRawResponse.cs
- OpenTypeLayoutCache.cs
- PolygonHotSpot.cs
- RenamedEventArgs.cs
- DataStorage.cs
- DataGridAddNewRow.cs
- HttpApplicationStateBase.cs
- SqlClientFactory.cs
- InstanceLockQueryResult.cs
- FlowDocumentPageViewerAutomationPeer.cs
- PerformanceCounterLib.cs
- SettingsBase.cs
- FieldAccessException.cs
- RecordConverter.cs
- ToolStripContentPanelRenderEventArgs.cs
- WindowsTreeView.cs
- MatrixAnimationBase.cs
- Property.cs
- Label.cs
- LinkAreaEditor.cs
- Stroke.cs
- TransactionContextManager.cs
- ServicePointManagerElement.cs
- WinFormsSpinner.cs
- TypeDependencyAttribute.cs
- RootBuilder.cs
- XmlDataProvider.cs
- WindowsPrincipal.cs
- MsmqIntegrationMessageProperty.cs
- SecurityIdentifierElementCollection.cs
- DataSourceXmlSerializer.cs
- DataGridColumn.cs
- StreamGeometry.cs
- TranslateTransform.cs
- TerminatorSinks.cs
- DataGridViewToolTip.cs
- LinqDataSourceSelectEventArgs.cs
- Hashtable.cs
- LinkButton.cs
- ObjectStorage.cs
- MouseGesture.cs
- WebControlAdapter.cs
- Currency.cs
- PortCache.cs
- WindowsEditBoxRange.cs
- FontNamesConverter.cs
- DataAccessException.cs
- HTTP_SERVICE_CONFIG_URLACL_PARAM.cs
- ManipulationDeltaEventArgs.cs
- UpdatePanel.cs
- TextParagraphCache.cs
- AuthenticatingEventArgs.cs
- SafeFreeMibTable.cs
- MenuAdapter.cs
- XPathItem.cs
- NameValuePermission.cs
- DiscardableAttribute.cs
- ManagementEventArgs.cs
- FileDialogCustomPlace.cs
- ImportContext.cs
- ViewBox.cs
- QueueProcessor.cs
- VSWCFServiceContractGenerator.cs
- ServiceCredentialsSecurityTokenManager.cs
- DataColumnMapping.cs
- DataGridViewAdvancedBorderStyle.cs
- PageParser.cs
- StorageEndPropertyMapping.cs
- Privilege.cs
- XD.cs
- PointLight.cs
- BrowserCapabilitiesFactoryBase.cs
- ToolStripPanel.cs
- ReadOnlyHierarchicalDataSourceView.cs
- ChooseAction.cs
- BitmapVisualManager.cs
- CapacityStreamGeometryContext.cs
- RequestCachePolicy.cs
- DataRowExtensions.cs
- DesignOnlyAttribute.cs
- TrustSection.cs
- UnsafeCollabNativeMethods.cs
- _PooledStream.cs