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
- FontDifferentiator.cs
- FixedSOMFixedBlock.cs
- CodeMemberProperty.cs
- TagNameToTypeMapper.cs
- AuthStoreRoleProvider.cs
- SchemaImporter.cs
- RuleConditionDialog.Designer.cs
- SharedStatics.cs
- VideoDrawing.cs
- TemplatePropertyEntry.cs
- InvalidOleVariantTypeException.cs
- RectangleConverter.cs
- TimeoutValidationAttribute.cs
- StrokeNodeOperations2.cs
- FontUnit.cs
- TiffBitmapEncoder.cs
- WebConfigManager.cs
- HttpListenerElement.cs
- HttpModuleAction.cs
- HotCommands.cs
- PasswordTextContainer.cs
- NetTcpSecurity.cs
- ToolStripContainer.cs
- TextEffect.cs
- DeploymentSection.cs
- HttpDigestClientCredential.cs
- UserControlDocumentDesigner.cs
- BooleanFacetDescriptionElement.cs
- odbcmetadatacollectionnames.cs
- backend.cs
- DbgCompiler.cs
- DataServiceQueryOfT.cs
- CallContext.cs
- RegexWorker.cs
- GridPatternIdentifiers.cs
- ScriptResourceHandler.cs
- InitializerFacet.cs
- XmlSchemaImporter.cs
- MarginCollapsingState.cs
- ShapeTypeface.cs
- Rect3DConverter.cs
- MessageBuilder.cs
- UnsafeNativeMethods.cs
- ExtensionSimplifierMarkupObject.cs
- DocumentOutline.cs
- BitmapFrame.cs
- XhtmlBasicLabelAdapter.cs
- CodeTypeConstructor.cs
- Dynamic.cs
- SystemSounds.cs
- ImpersonationContext.cs
- SatelliteContractVersionAttribute.cs
- QueryFunctions.cs
- ComPlusDiagnosticTraceRecords.cs
- FixedSOMPageElement.cs
- CatalogPartCollection.cs
- ToolStripItemBehavior.cs
- RequestCacheManager.cs
- PasswordValidationException.cs
- NetworkInterface.cs
- TextBoxRenderer.cs
- BounceEase.cs
- XmlSchemaGroup.cs
- XmlSchemaImport.cs
- _TimerThread.cs
- Point3DCollectionValueSerializer.cs
- TextProperties.cs
- TdsParserStateObject.cs
- AlphaSortedEnumConverter.cs
- InkCanvas.cs
- RegexCaptureCollection.cs
- ToolStripSeparator.cs
- TextRangeBase.cs
- EntityFunctions.cs
- SelectedGridItemChangedEvent.cs
- DataGridLinkButton.cs
- SerializableTypeCodeDomSerializer.cs
- DemultiplexingClientMessageFormatter.cs
- ToolStripControlHost.cs
- OleDbPropertySetGuid.cs
- IItemContainerGenerator.cs
- DbExpressionBuilder.cs
- Hyperlink.cs
- ProtocolsConfigurationHandler.cs
- SqlGenerator.cs
- FloatUtil.cs
- ProtectedConfigurationProviderCollection.cs
- ListSourceHelper.cs
- CompilerError.cs
- ClientTargetCollection.cs
- InputDevice.cs
- ping.cs
- ImmutablePropertyDescriptorGridEntry.cs
- ProviderSettingsCollection.cs
- SoapIncludeAttribute.cs
- DocumentViewerBaseAutomationPeer.cs
- IInstanceTable.cs
- HttpCacheParams.cs
- RedBlackList.cs
- AsyncSerializedWorker.cs