Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / CompMod / System / CodeDOM / CodeAttributeArgumentCollection.cs / 1305376 / 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.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- BamlBinaryWriter.cs
- ComponentRenameEvent.cs
- SqlClientWrapperSmiStream.cs
- DesignerActionUIService.cs
- XDeferredAxisSource.cs
- StickyNoteHelper.cs
- InputEventArgs.cs
- ColumnResizeAdorner.cs
- OutputCacheProfileCollection.cs
- RegisteredExpandoAttribute.cs
- DataGridLinkButton.cs
- InvalidDataException.cs
- InputBuffer.cs
- SmiXetterAccessMap.cs
- SequentialUshortCollection.cs
- DivideByZeroException.cs
- InlineCollection.cs
- DrawingAttributes.cs
- SemanticResolver.cs
- DbgUtil.cs
- BitmapScalingModeValidation.cs
- WebGetAttribute.cs
- CompositeFontParser.cs
- WhitespaceSignificantCollectionAttribute.cs
- PersistenceProviderBehavior.cs
- DataGridParentRows.cs
- TreeNodeConverter.cs
- ConnectionConsumerAttribute.cs
- DispatcherProcessingDisabled.cs
- StatusBarItem.cs
- TaskExtensions.cs
- TextSegment.cs
- SaveFileDialog.cs
- InfoCardMasterKey.cs
- EFTableProvider.cs
- ControlUtil.cs
- XmlDsigSep2000.cs
- AuthorizationSection.cs
- WinCategoryAttribute.cs
- ConfigurationElement.cs
- ConfigurationValidatorAttribute.cs
- activationcontext.cs
- ADMembershipProvider.cs
- IndexerNameAttribute.cs
- WindowsFormsLinkLabel.cs
- WindowsFormsEditorServiceHelper.cs
- DispatcherEventArgs.cs
- Stack.cs
- EntityAdapter.cs
- PlatformNotSupportedException.cs
- DefaultShape.cs
- ObjectStateEntryDbUpdatableDataRecord.cs
- XPathSelectionIterator.cs
- NavigationProgressEventArgs.cs
- BlockUIContainer.cs
- SpellerStatusTable.cs
- KoreanLunisolarCalendar.cs
- TabPage.cs
- LocationReferenceEnvironment.cs
- OracleTransaction.cs
- SafeRegistryHandle.cs
- DefaultHttpHandler.cs
- DesignerVerb.cs
- XmlAtomicValue.cs
- ToolStripOverflowButton.cs
- HistoryEventArgs.cs
- ProxyAttribute.cs
- RequestCachePolicy.cs
- FlowLayoutSettings.cs
- _ShellExpression.cs
- Multiply.cs
- XmlWriterTraceListener.cs
- DataIdProcessor.cs
- ExtensionSimplifierMarkupObject.cs
- DbProviderFactoriesConfigurationHandler.cs
- DefaultAsyncDataDispatcher.cs
- XsltQilFactory.cs
- DBDataPermissionAttribute.cs
- _Semaphore.cs
- AxHostDesigner.cs
- UserPreferenceChangedEventArgs.cs
- SettingsPropertyValueCollection.cs
- DataViewSettingCollection.cs
- SqlCommandSet.cs
- RuleInfoComparer.cs
- TreeNodeMouseHoverEvent.cs
- DataGridCommandEventArgs.cs
- CapabilitiesUse.cs
- SQLStringStorage.cs
- MetadataStore.cs
- XhtmlConformanceSection.cs
- BindingMemberInfo.cs
- ScopelessEnumAttribute.cs
- cryptoapiTransform.cs
- XhtmlTextWriter.cs
- AstNode.cs
- XsltContext.cs
- Section.cs
- ListViewDataItem.cs
- SqlDataSourceQueryConverter.cs