Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / ndp / fx / src / CompMod / System / CodeDOM / CodeAttributeArgumentCollection.cs / 1 / CodeAttributeArgumentCollection.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 CodeAttributeArgumentCollection : CollectionBase {
///
///
/// Initializes a new instance of .
///
///
public CodeAttributeArgumentCollection() {
}
///
///
/// Initializes a new instance of based on another .
///
///
public CodeAttributeArgumentCollection(CodeAttributeArgumentCollection value) {
this.AddRange(value);
}
///
///
/// Initializes a new instance of containing any array of objects.
///
///
public CodeAttributeArgumentCollection(CodeAttributeArgument[] value) {
this.AddRange(value);
}
///
/// Represents the entry at the specified index of the .
///
public CodeAttributeArgument this[int index] {
get {
return ((CodeAttributeArgument)(List[index]));
}
set {
List[index] = value;
}
}
///
/// Adds a with the specified value to the
/// .
///
public int Add(CodeAttributeArgument value) {
return List.Add(value);
}
///
/// Copies the elements of an array to the end of the .
///
public void AddRange(CodeAttributeArgument[] 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(CodeAttributeArgumentCollection 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(CodeAttributeArgument value) {
return List.Contains(value);
}
///
/// Copies the values to a one-dimensional instance at the
/// specified index.
///
public void CopyTo(CodeAttributeArgument[] array, int index) {
List.CopyTo(array, index);
}
///
/// Returns the index of a in
/// the .
///
public int IndexOf(CodeAttributeArgument value) {
return List.IndexOf(value);
}
///
/// Inserts a into the at the specified index.
///
public void Insert(int index, CodeAttributeArgument value) {
List.Insert(index, value);
}
///
/// Removes a specific from the
/// .
///
public void Remove(CodeAttributeArgument 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 CodeAttributeArgumentCollection : CollectionBase {
///
///
/// Initializes a new instance of .
///
///
public CodeAttributeArgumentCollection() {
}
///
///
/// Initializes a new instance of based on another .
///
///
public CodeAttributeArgumentCollection(CodeAttributeArgumentCollection value) {
this.AddRange(value);
}
///
///
/// Initializes a new instance of containing any array of objects.
///
///
public CodeAttributeArgumentCollection(CodeAttributeArgument[] value) {
this.AddRange(value);
}
///
/// Represents the entry at the specified index of the .
///
public CodeAttributeArgument this[int index] {
get {
return ((CodeAttributeArgument)(List[index]));
}
set {
List[index] = value;
}
}
///
/// Adds a with the specified value to the
/// .
///
public int Add(CodeAttributeArgument value) {
return List.Add(value);
}
///
/// Copies the elements of an array to the end of the .
///
public void AddRange(CodeAttributeArgument[] 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(CodeAttributeArgumentCollection 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(CodeAttributeArgument value) {
return List.Contains(value);
}
///
/// Copies the values to a one-dimensional instance at the
/// specified index.
///
public void CopyTo(CodeAttributeArgument[] array, int index) {
List.CopyTo(array, index);
}
///
/// Returns the index of a in
/// the .
///
public int IndexOf(CodeAttributeArgument value) {
return List.IndexOf(value);
}
///
/// Inserts a into the at the specified index.
///
public void Insert(int index, CodeAttributeArgument value) {
List.Insert(index, value);
}
///
/// Removes a specific from the
/// .
///
public void Remove(CodeAttributeArgument 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
- SetIterators.cs
- KeyboardNavigation.cs
- DataGridViewCellLinkedList.cs
- RowUpdatedEventArgs.cs
- QilNode.cs
- Error.cs
- TiffBitmapEncoder.cs
- SqlUDTStorage.cs
- xamlnodes.cs
- TextParagraphProperties.cs
- SoapFaultCodes.cs
- ReadOnlyHierarchicalDataSource.cs
- FixedBufferAttribute.cs
- HitTestParameters.cs
- CodeChecksumPragma.cs
- SoapServerMethod.cs
- TextBox.cs
- DateTimeEditor.cs
- CollectionBase.cs
- XmlILOptimizerVisitor.cs
- CompositionDesigner.cs
- TextContainerChangedEventArgs.cs
- ContextMenuStripGroupCollection.cs
- WSUtilitySpecificationVersion.cs
- ErrorTableItemStyle.cs
- unsafenativemethodsother.cs
- ParallelDesigner.cs
- XmlAttributeOverrides.cs
- DesignerVerbCollection.cs
- ProcessRequestAsyncResult.cs
- DesignerForm.cs
- DecimalConverter.cs
- DataGrid.cs
- HashAlgorithm.cs
- UrlPath.cs
- StackSpiller.Bindings.cs
- UserNamePasswordValidator.cs
- XmlQueryOutput.cs
- LinqDataSourceView.cs
- UriSchemeKeyedCollection.cs
- StorageEntityContainerMapping.cs
- SharedConnectionInfo.cs
- GACMembershipCondition.cs
- UserMapPath.cs
- KnownTypesHelper.cs
- ObjectParameterCollection.cs
- TableLayoutPanel.cs
- ScrollViewer.cs
- ObjectToken.cs
- PrePostDescendentsWalker.cs
- DesignerOptionService.cs
- TraversalRequest.cs
- BinaryObjectInfo.cs
- CompatibleComparer.cs
- SQLRoleProvider.cs
- XamlClipboardData.cs
- odbcmetadatacolumnnames.cs
- AsymmetricKeyExchangeDeformatter.cs
- OracleDataAdapter.cs
- RoleGroup.cs
- DataGridViewRowHeightInfoPushedEventArgs.cs
- Base64Encoder.cs
- IndexedDataBuffer.cs
- GenerateTemporaryTargetAssembly.cs
- MediaElement.cs
- ParameterCollectionEditorForm.cs
- UrlPath.cs
- ConnectionInterfaceCollection.cs
- InputManager.cs
- IndependentlyAnimatedPropertyMetadata.cs
- MessageQueuePermissionEntry.cs
- QilSortKey.cs
- MsmqBindingBase.cs
- ColorAnimation.cs
- WebBrowserContainer.cs
- TraceShell.cs
- ContentIterators.cs
- StyleXamlParser.cs
- IdentityManager.cs
- RegexWorker.cs
- ResourceReferenceExpression.cs
- ChangeBlockUndoRecord.cs
- MetaModel.cs
- ChannelCacheDefaults.cs
- ClientTargetCollection.cs
- ChangeTracker.cs
- XPathNavigatorReader.cs
- WindowsFormsSynchronizationContext.cs
- Command.cs
- PeerCollaboration.cs
- BindingNavigator.cs
- ToolStripRendererSwitcher.cs
- XmlArrayItemAttribute.cs
- WindowsScroll.cs
- IdentityHolder.cs
- ToolboxItemFilterAttribute.cs
- userdatakeys.cs
- IdentityManager.cs
- TextElement.cs
- EdmValidator.cs