Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / ndp / fx / src / CompMod / System / CodeDOM / CodeAttributeDeclarationCollection.cs / 1 / 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.
// ------------------------------------------------------------------------------
//
// 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
- ConfigurationHandlersInstallComponent.cs
- SingleSelectRootGridEntry.cs
- WebPartConnectionsCloseVerb.cs
- ImportException.cs
- ParameterModifier.cs
- Application.cs
- PipeStream.cs
- ToolStripGripRenderEventArgs.cs
- TypeTypeConverter.cs
- RenderData.cs
- SmtpNetworkElement.cs
- CatalogPartChrome.cs
- ZipIOZip64EndOfCentralDirectoryBlock.cs
- StylusButtonEventArgs.cs
- UnsafeCollabNativeMethods.cs
- HttpServerUtilityBase.cs
- TemplateControlParser.cs
- SignerInfo.cs
- EndOfStreamException.cs
- DoubleIndependentAnimationStorage.cs
- ControlBuilder.cs
- Merger.cs
- Control.cs
- FrameSecurityDescriptor.cs
- DbDataSourceEnumerator.cs
- HttpFileCollection.cs
- ZipPackagePart.cs
- XMLUtil.cs
- IntegerValidator.cs
- ArraySortHelper.cs
- IntSecurity.cs
- LinkedResource.cs
- WorkflowItemsPresenter.cs
- DisplayMemberTemplateSelector.cs
- DbParameterCollectionHelper.cs
- DataGridViewIntLinkedList.cs
- DataGridAutomationPeer.cs
- FilterableAttribute.cs
- ObjectAssociationEndMapping.cs
- LongValidator.cs
- ManagementClass.cs
- ColorAnimationUsingKeyFrames.cs
- Currency.cs
- ComponentEvent.cs
- APCustomTypeDescriptor.cs
- UInt64Converter.cs
- ButtonFlatAdapter.cs
- LinkDescriptor.cs
- CacheDependency.cs
- Compilation.cs
- RenameRuleObjectDialog.Designer.cs
- AnnotationHighlightLayer.cs
- SqlConnectionStringBuilder.cs
- PriorityRange.cs
- BitmapEffectGroup.cs
- RegisteredArrayDeclaration.cs
- PropertyInfo.cs
- AsymmetricKeyExchangeDeformatter.cs
- ItemList.cs
- Vector.cs
- ComponentEditorPage.cs
- DataGridViewRowCancelEventArgs.cs
- SelectionItemProviderWrapper.cs
- PropertyInformation.cs
- DelegateHelpers.cs
- DuplicateWaitObjectException.cs
- FormViewModeEventArgs.cs
- XmlChoiceIdentifierAttribute.cs
- Enlistment.cs
- ModuleBuilder.cs
- DbConnectionHelper.cs
- _CookieModule.cs
- UserInitiatedNavigationPermission.cs
- WebAdminConfigurationHelper.cs
- FileLogRecordEnumerator.cs
- ClientSideQueueItem.cs
- HtmlTableCell.cs
- FullTextLine.cs
- TreeNodeCollectionEditor.cs
- XamlFigureLengthSerializer.cs
- RadioButtonRenderer.cs
- WebPartConnectionCollection.cs
- EmptyEnumerator.cs
- Sql8ExpressionRewriter.cs
- WebBrowsableAttribute.cs
- XslCompiledTransform.cs
- DetailsViewModeEventArgs.cs
- SecurityException.cs
- BinaryConverter.cs
- OdbcTransaction.cs
- AutomationElementCollection.cs
- DrawToolTipEventArgs.cs
- ResourceDescriptionAttribute.cs
- SystemResources.cs
- PointAnimationUsingKeyFrames.cs
- ToolbarAUtomationPeer.cs
- StreamResourceInfo.cs
- GPStream.cs
- ReachIDocumentPaginatorSerializerAsync.cs
- RawMouseInputReport.cs