Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / CompMod / System / CodeDOM / CodeParameterDeclarationExpressionCollection.cs / 1305376 / 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);
}
}
}
// 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 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);
}
}
}
// 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
- FixedSOMFixedBlock.cs
- Sequence.cs
- PageContentCollection.cs
- SourceItem.cs
- XmlSignatureManifest.cs
- JournalEntryStack.cs
- PageThemeBuildProvider.cs
- NameTable.cs
- AttachInfo.cs
- FormViewDeletedEventArgs.cs
- ManagementObjectCollection.cs
- MetafileHeader.cs
- TTSEvent.cs
- TempFiles.cs
- NativeObjectSecurity.cs
- SerTrace.cs
- XslNumber.cs
- PageThemeBuildProvider.cs
- DataGridAutomationPeer.cs
- WindowsIPAddress.cs
- DataGridViewRowConverter.cs
- HtmlImageAdapter.cs
- MdImport.cs
- WorkflowDataContext.cs
- LexicalChunk.cs
- NativeMethods.cs
- DataRecordInfo.cs
- ServiceDesigner.xaml.cs
- TcpConnectionPoolSettingsElement.cs
- BaseResourcesBuildProvider.cs
- DoubleStorage.cs
- BrowserDefinitionCollection.cs
- ClientProxyGenerator.cs
- FloatUtil.cs
- PropertyEmitterBase.cs
- COM2PropertyBuilderUITypeEditor.cs
- BindingCollection.cs
- LocatorBase.cs
- TextSearch.cs
- ProviderConnectionPointCollection.cs
- DataGridPageChangedEventArgs.cs
- JavaScriptSerializer.cs
- EmissiveMaterial.cs
- DBSqlParserColumn.cs
- DataGridViewColumn.cs
- IndentedWriter.cs
- CssStyleCollection.cs
- CredentialCache.cs
- BackoffTimeoutHelper.cs
- BasePropertyDescriptor.cs
- ToolStripActionList.cs
- Configuration.cs
- HttpWriter.cs
- TransformerInfo.cs
- AnnotationAdorner.cs
- DataRecordObjectView.cs
- IDReferencePropertyAttribute.cs
- WebPartEditorApplyVerb.cs
- PeerChannelListener.cs
- DatatypeImplementation.cs
- _SpnDictionary.cs
- MsmqAppDomainProtocolHandler.cs
- Glyph.cs
- TextControlDesigner.cs
- ObjectToken.cs
- CheckBoxField.cs
- DataSourceCache.cs
- NativeMethods.cs
- contentDescriptor.cs
- TableLayoutStyleCollection.cs
- ACE.cs
- CodeTypeParameterCollection.cs
- CompilerGeneratedAttribute.cs
- RequestBringIntoViewEventArgs.cs
- HtmlMeta.cs
- ContentFilePart.cs
- MobileControlDesigner.cs
- KnownTypesHelper.cs
- TransformValueSerializer.cs
- Security.cs
- FrameworkTemplate.cs
- versioninfo.cs
- TableSectionStyle.cs
- COM2Enum.cs
- BooleanExpr.cs
- SafeMarshalContext.cs
- Substitution.cs
- Soap.cs
- WebHostedComPlusServiceHost.cs
- Lasso.cs
- DataGridViewBindingCompleteEventArgs.cs
- ClientRuntimeConfig.cs
- Int16Animation.cs
- Interlocked.cs
- TypeUtils.cs
- SqlDuplicator.cs
- XmlValueConverter.cs
- XMLUtil.cs
- OciHandle.cs
- HtmlTernaryTree.cs