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
- DmlSqlGenerator.cs
- IndicCharClassifier.cs
- BehaviorEditorPart.cs
- EditorZone.cs
- reliableinputsessionchannel.cs
- DataGridViewComboBoxCell.cs
- TextTreeUndo.cs
- Rfc4050KeyFormatter.cs
- BufferedGraphicsContext.cs
- CodeSnippetTypeMember.cs
- ComponentDispatcher.cs
- ResourceDictionaryCollection.cs
- _ListenerResponseStream.cs
- GridViewCellAutomationPeer.cs
- ReachPrintTicketSerializer.cs
- XmlAttributeAttribute.cs
- SQLResource.cs
- StringDictionaryWithComparer.cs
- Profiler.cs
- PrintPreviewGraphics.cs
- CheckBoxField.cs
- SourceLineInfo.cs
- MarkedHighlightComponent.cs
- PageThemeParser.cs
- HtmlShim.cs
- RightsManagementEncryptionTransform.cs
- SqlServer2KCompatibilityCheck.cs
- HtmlUtf8RawTextWriter.cs
- JavascriptXmlWriterWrapper.cs
- MessageBox.cs
- HttpPostedFile.cs
- CredentialManagerDialog.cs
- UpnEndpointIdentity.cs
- SoapMessage.cs
- MetadataArtifactLoaderFile.cs
- SmiEventStream.cs
- ExpressionUtilities.cs
- ViewCellRelation.cs
- EditorPartChrome.cs
- Soap.cs
- ScriptIgnoreAttribute.cs
- StyleTypedPropertyAttribute.cs
- SqlMultiplexer.cs
- DocumentEventArgs.cs
- DataGridViewCellParsingEventArgs.cs
- BaseParser.cs
- BamlMapTable.cs
- FileUpload.cs
- OdbcUtils.cs
- BooleanAnimationBase.cs
- FrameworkTextComposition.cs
- TreeNodeSelectionProcessor.cs
- GridViewColumn.cs
- ResourceType.cs
- TextClipboardData.cs
- KeyGestureConverter.cs
- _AutoWebProxyScriptWrapper.cs
- HyperLinkField.cs
- EventSinkHelperWriter.cs
- ColumnReorderedEventArgs.cs
- SafeCoTaskMem.cs
- Rect3D.cs
- DSACryptoServiceProvider.cs
- Screen.cs
- WebPartConnectionsEventArgs.cs
- ConnectionManagementElement.cs
- UpdateManifestForBrowserApplication.cs
- XmlLanguage.cs
- ExitEventArgs.cs
- RowParagraph.cs
- DebugController.cs
- EventLogConfiguration.cs
- ExcCanonicalXml.cs
- ConnectionPointCookie.cs
- WinInetCache.cs
- ThreadStateException.cs
- CqlWriter.cs
- ValidationSummaryDesigner.cs
- StylusButtonCollection.cs
- SplitterCancelEvent.cs
- EndpointNameMessageFilter.cs
- RotateTransform3D.cs
- ToolStripContainerDesigner.cs
- Rfc2898DeriveBytes.cs
- XmlFormatReaderGenerator.cs
- RowUpdatingEventArgs.cs
- AppDomainFactory.cs
- TriggerCollection.cs
- SymbolType.cs
- FunctionQuery.cs
- JulianCalendar.cs
- SQLInt16.cs
- QualificationDataItem.cs
- CollectionChangeEventArgs.cs
- TokenDescriptor.cs
- DesignerDataTableBase.cs
- ViewStateException.cs
- XmlWrappingReader.cs
- ConstructorNeedsTagAttribute.cs
- IssuanceLicense.cs