Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / CompMod / System / CodeDOM / CodeTypeDeclarationCollection.cs / 1305376 / CodeTypeDeclarationCollection.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 CodeTypeDeclarationCollection : CollectionBase {
///
///
/// Initializes a new instance of .
///
///
public CodeTypeDeclarationCollection() {
}
///
///
/// Initializes a new instance of based on another .
///
///
public CodeTypeDeclarationCollection(CodeTypeDeclarationCollection value) {
this.AddRange(value);
}
///
///
/// Initializes a new instance of containing any array of objects.
///
///
public CodeTypeDeclarationCollection(CodeTypeDeclaration[] value) {
this.AddRange(value);
}
///
/// Represents the entry at the specified index of the .
///
public CodeTypeDeclaration this[int index] {
get {
return ((CodeTypeDeclaration)(List[index]));
}
set {
List[index] = value;
}
}
///
/// Adds a with the specified value to the
/// .
///
public int Add(CodeTypeDeclaration value) {
return List.Add(value);
}
///
/// Copies the elements of an array to the end of the .
///
public void AddRange(CodeTypeDeclaration[] 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(CodeTypeDeclarationCollection 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(CodeTypeDeclaration value) {
return List.Contains(value);
}
///
/// Copies the values to a one-dimensional instance at the
/// specified index.
///
public void CopyTo(CodeTypeDeclaration[] array, int index) {
List.CopyTo(array, index);
}
///
/// Returns the index of a in
/// the .
///
public int IndexOf(CodeTypeDeclaration value) {
return List.IndexOf(value);
}
///
/// Inserts a into the at the specified index.
///
public void Insert(int index, CodeTypeDeclaration value) {
List.Insert(index, value);
}
///
/// Removes a specific from the
/// .
///
public void Remove(CodeTypeDeclaration 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 CodeTypeDeclarationCollection : CollectionBase {
///
///
/// Initializes a new instance of .
///
///
public CodeTypeDeclarationCollection() {
}
///
///
/// Initializes a new instance of based on another .
///
///
public CodeTypeDeclarationCollection(CodeTypeDeclarationCollection value) {
this.AddRange(value);
}
///
///
/// Initializes a new instance of containing any array of objects.
///
///
public CodeTypeDeclarationCollection(CodeTypeDeclaration[] value) {
this.AddRange(value);
}
///
/// Represents the entry at the specified index of the .
///
public CodeTypeDeclaration this[int index] {
get {
return ((CodeTypeDeclaration)(List[index]));
}
set {
List[index] = value;
}
}
///
/// Adds a with the specified value to the
/// .
///
public int Add(CodeTypeDeclaration value) {
return List.Add(value);
}
///
/// Copies the elements of an array to the end of the .
///
public void AddRange(CodeTypeDeclaration[] 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(CodeTypeDeclarationCollection 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(CodeTypeDeclaration value) {
return List.Contains(value);
}
///
/// Copies the values to a one-dimensional instance at the
/// specified index.
///
public void CopyTo(CodeTypeDeclaration[] array, int index) {
List.CopyTo(array, index);
}
///
/// Returns the index of a in
/// the .
///
public int IndexOf(CodeTypeDeclaration value) {
return List.IndexOf(value);
}
///
/// Inserts a into the at the specified index.
///
public void Insert(int index, CodeTypeDeclaration value) {
List.Insert(index, value);
}
///
/// Removes a specific from the
/// .
///
public void Remove(CodeTypeDeclaration 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
- Emitter.cs
- AtlasWeb.Designer.cs
- SqlDependencyListener.cs
- _KerberosClient.cs
- IsolationInterop.cs
- BufferAllocator.cs
- Visual3DCollection.cs
- Comparer.cs
- Visitors.cs
- BamlMapTable.cs
- ApplicationServiceHelper.cs
- DataRecordObjectView.cs
- TCEAdapterGenerator.cs
- UpdatePanelTriggerCollection.cs
- EntityDataSourceMemberPath.cs
- ResourcePart.cs
- DataIdProcessor.cs
- EncryptedKey.cs
- Double.cs
- WebBrowserNavigatingEventHandler.cs
- GlobalizationSection.cs
- GridEntry.cs
- SetIterators.cs
- XmlDataSource.cs
- QuadraticBezierSegment.cs
- SatelliteContractVersionAttribute.cs
- GradientBrush.cs
- SoapSchemaImporter.cs
- ConfigurationStrings.cs
- AlternationConverter.cs
- ThicknessAnimation.cs
- CodeAttributeDeclarationCollection.cs
- TextTreeInsertUndoUnit.cs
- TypedAsyncResult.cs
- DataSourceCacheDurationConverter.cs
- PolicyException.cs
- FileDialogPermission.cs
- ClientWindowsAuthenticationMembershipProvider.cs
- XomlCompiler.cs
- CssTextWriter.cs
- HideDisabledControlAdapter.cs
- RecognizedWordUnit.cs
- Funcletizer.cs
- ActivityDesignerResources.cs
- ByteConverter.cs
- COM2ExtendedBrowsingHandler.cs
- SettingsSection.cs
- TypeInformation.cs
- ReadContentAsBinaryHelper.cs
- GlobalProxySelection.cs
- RegexParser.cs
- AssemblyBuilder.cs
- ToolStripItemCollection.cs
- TreeViewItemAutomationPeer.cs
- CurrencyManager.cs
- Emitter.cs
- IdentityValidationException.cs
- WorkflowCompensationBehavior.cs
- ParameterCollection.cs
- ListenerElementsCollection.cs
- MetadataArtifactLoader.cs
- CorrelationService.cs
- SinglePageViewer.cs
- QuaternionValueSerializer.cs
- WebPartHelpVerb.cs
- HWStack.cs
- XmlCodeExporter.cs
- ObjectAnimationUsingKeyFrames.cs
- FlowDocumentScrollViewerAutomationPeer.cs
- FileCodeGroup.cs
- assemblycache.cs
- _OSSOCK.cs
- CommonBehaviorsSection.cs
- Int32Rect.cs
- XmlHierarchyData.cs
- TiffBitmapEncoder.cs
- CryptoConfig.cs
- Converter.cs
- WindowsFormsHostAutomationPeer.cs
- ThicknessKeyFrameCollection.cs
- WebBrowserDocumentCompletedEventHandler.cs
- SystemDiagnosticsSection.cs
- MenuItemBindingCollection.cs
- DurableInstance.cs
- DataGridViewRowStateChangedEventArgs.cs
- ClientScriptManager.cs
- DataGridViewAccessibleObject.cs
- CustomAssemblyResolver.cs
- ConnectionManagementElementCollection.cs
- FormViewPagerRow.cs
- CorruptingExceptionCommon.cs
- ResourceReferenceExpression.cs
- RootCodeDomSerializer.cs
- WebAdminConfigurationHelper.cs
- DesignerWidgets.cs
- lengthconverter.cs
- TypedElement.cs
- XmlStreamStore.cs
- RuleConditionDialog.Designer.cs
- CheckBoxStandardAdapter.cs