Code:
/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / ndp / fx / src / CompMod / System / CodeDOM / CodeParameterDeclarationExpressionCollection.cs / 1 / CodeParameterDeclarationExpressionCollection.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 CodeParameterDeclarationExpressionCollection : CollectionBase {
///
///
/// Initializes a new instance of .
///
///
public CodeParameterDeclarationExpressionCollection() {
}
///
///
/// Initializes a new instance of based on another .
///
///
public CodeParameterDeclarationExpressionCollection(CodeParameterDeclarationExpressionCollection value) {
this.AddRange(value);
}
///
///
/// Initializes a new instance of containing any array of objects.
///
///
public CodeParameterDeclarationExpressionCollection(CodeParameterDeclarationExpression[] value) {
this.AddRange(value);
}
///
/// Represents the entry at the specified index of the .
///
public CodeParameterDeclarationExpression this[int index] {
get {
return ((CodeParameterDeclarationExpression)(List[index]));
}
set {
List[index] = value;
}
}
///
/// Adds a with the specified value to the
/// .
///
public int Add(CodeParameterDeclarationExpression value) {
return List.Add(value);
}
///
/// Copies the elements of an array to the end of the .
///
public void AddRange(CodeParameterDeclarationExpression[] 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(CodeParameterDeclarationExpressionCollection 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(CodeParameterDeclarationExpression value) {
return List.Contains(value);
}
///
/// Copies the values to a one-dimensional instance at the
/// specified index.
///
public void CopyTo(CodeParameterDeclarationExpression[] array, int index) {
List.CopyTo(array, index);
}
///
/// Returns the index of a in
/// the .
///
public int IndexOf(CodeParameterDeclarationExpression value) {
return List.IndexOf(value);
}
///
/// Inserts a into the at the specified index.
///
public void Insert(int index, CodeParameterDeclarationExpression value) {
List.Insert(index, value);
}
///
/// Removes a specific from the
/// .
///
public void Remove(CodeParameterDeclarationExpression value) {
List.Remove(value);
}
}
}
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- Identity.cs
- TransactionsSectionGroup.cs
- SoapConverter.cs
- DiscoveryDocument.cs
- ConsumerConnectionPointCollection.cs
- DataGridViewComboBoxColumn.cs
- ProfileSettingsCollection.cs
- DataListItem.cs
- TimeSpanConverter.cs
- KeyValueConfigurationCollection.cs
- sqlstateclientmanager.cs
- GeneralTransform2DTo3DTo2D.cs
- CompilerInfo.cs
- AppLevelCompilationSectionCache.cs
- CodeCatchClause.cs
- XmlSchemaSet.cs
- XmlObjectSerializerWriteContext.cs
- TableRow.cs
- CodeBinaryOperatorExpression.cs
- NativeMethods.cs
- BlobPersonalizationState.cs
- RawAppCommandInputReport.cs
- SecurityUniqueId.cs
- CodeMemberEvent.cs
- SqlTypesSchemaImporter.cs
- WsdlBuildProvider.cs
- OuterGlowBitmapEffect.cs
- WindowsGraphicsCacheManager.cs
- XmlSerializerSection.cs
- XmlNodeReader.cs
- Accessors.cs
- XpsSerializerFactory.cs
- SqlDataSourceCustomCommandEditor.cs
- XsltContext.cs
- GradientStop.cs
- BaseCAMarshaler.cs
- MetadataWorkspace.cs
- FastEncoder.cs
- SafeBuffer.cs
- ListControlConvertEventArgs.cs
- MSAAEventDispatcher.cs
- QfeChecker.cs
- DebugHandleTracker.cs
- KeyTimeConverter.cs
- EntityDataReader.cs
- ListViewItem.cs
- SqlStream.cs
- LazyInitializer.cs
- EndpointIdentityConverter.cs
- NonParentingControl.cs
- NativeMethods.cs
- Command.cs
- ObjectToken.cs
- MediaContext.cs
- PolyQuadraticBezierSegment.cs
- SpellerError.cs
- OleTxTransactionInfo.cs
- CopyOfAction.cs
- CloudCollection.cs
- listviewsubitemcollectioneditor.cs
- MethodBody.cs
- CompilerResults.cs
- DataGridViewAdvancedBorderStyle.cs
- SQLInt64Storage.cs
- SessionStateUtil.cs
- UIElementHelper.cs
- _BaseOverlappedAsyncResult.cs
- URI.cs
- HtmlProps.cs
- XPathNodeHelper.cs
- TextDecorationLocationValidation.cs
- DeviceContexts.cs
- ResourceReader.cs
- AutomationProperties.cs
- TextAnchor.cs
- SyntaxCheck.cs
- FixedSOMGroup.cs
- D3DImage.cs
- PolygonHotSpot.cs
- ScriptManager.cs
- PeerTransportCredentialType.cs
- BindingMAnagerBase.cs
- ConsoleTraceListener.cs
- MsiStyleLogWriter.cs
- BufferedStream.cs
- ObjectNavigationPropertyMapping.cs
- WebPartConnectionsCloseVerb.cs
- storepermissionattribute.cs
- MetaDataInfo.cs
- SafeNativeMethods.cs
- InvalidComObjectException.cs
- XmlAttributeOverrides.cs
- PrimarySelectionGlyph.cs
- WebConvert.cs
- BmpBitmapEncoder.cs
- WindowsFormsSynchronizationContext.cs
- LOSFormatter.cs
- PersonalizationEntry.cs
- Preprocessor.cs
- Preprocessor.cs