Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / ndp / fx / src / CompMod / System / CodeDOM / CodeCommentStatementCollection.cs / 1 / CodeCommentStatementCollection.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 CodeCommentStatementCollection : CollectionBase {
///
///
/// Initializes a new instance of .
///
///
public CodeCommentStatementCollection() {
}
///
///
/// Initializes a new instance of based on another .
///
///
public CodeCommentStatementCollection(CodeCommentStatementCollection value) {
this.AddRange(value);
}
///
///
/// Initializes a new instance of containing any array of objects.
///
///
public CodeCommentStatementCollection(CodeCommentStatement[] value) {
this.AddRange(value);
}
///
/// Represents the entry at the specified index of the .
///
public CodeCommentStatement this[int index] {
get {
return ((CodeCommentStatement)(List[index]));
}
set {
List[index] = value;
}
}
///
/// Adds a with the specified value to the
/// .
///
public int Add(CodeCommentStatement value) {
return List.Add(value);
}
///
/// Copies the elements of an array to the end of the .
///
public void AddRange(CodeCommentStatement[] 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(CodeCommentStatementCollection 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(CodeCommentStatement value) {
return List.Contains(value);
}
///
/// Copies the values to a one-dimensional instance at the
/// specified index.
///
public void CopyTo(CodeCommentStatement[] array, int index) {
List.CopyTo(array, index);
}
///
/// Returns the index of a in
/// the .
///
public int IndexOf(CodeCommentStatement value) {
return List.IndexOf(value);
}
///
/// Inserts a into the at the specified index.
///
public void Insert(int index, CodeCommentStatement value) {
List.Insert(index, value);
}
///
/// Removes a specific from the
/// .
///
public void Remove(CodeCommentStatement 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 CodeCommentStatementCollection : CollectionBase {
///
///
/// Initializes a new instance of .
///
///
public CodeCommentStatementCollection() {
}
///
///
/// Initializes a new instance of based on another .
///
///
public CodeCommentStatementCollection(CodeCommentStatementCollection value) {
this.AddRange(value);
}
///
///
/// Initializes a new instance of containing any array of objects.
///
///
public CodeCommentStatementCollection(CodeCommentStatement[] value) {
this.AddRange(value);
}
///
/// Represents the entry at the specified index of the .
///
public CodeCommentStatement this[int index] {
get {
return ((CodeCommentStatement)(List[index]));
}
set {
List[index] = value;
}
}
///
/// Adds a with the specified value to the
/// .
///
public int Add(CodeCommentStatement value) {
return List.Add(value);
}
///
/// Copies the elements of an array to the end of the .
///
public void AddRange(CodeCommentStatement[] 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(CodeCommentStatementCollection 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(CodeCommentStatement value) {
return List.Contains(value);
}
///
/// Copies the values to a one-dimensional instance at the
/// specified index.
///
public void CopyTo(CodeCommentStatement[] array, int index) {
List.CopyTo(array, index);
}
///
/// Returns the index of a in
/// the .
///
public int IndexOf(CodeCommentStatement value) {
return List.IndexOf(value);
}
///
/// Inserts a into the at the specified index.
///
public void Insert(int index, CodeCommentStatement value) {
List.Insert(index, value);
}
///
/// Removes a specific from the
/// .
///
public void Remove(CodeCommentStatement 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
- BitmapSourceSafeMILHandle.cs
- Color.cs
- EmptyElement.cs
- AuthenticodeSignatureInformation.cs
- XmlC14NWriter.cs
- SQLDateTime.cs
- PinnedBufferMemoryStream.cs
- XsdBuildProvider.cs
- SqlUtils.cs
- CompilerInfo.cs
- DataGridViewSelectedCellCollection.cs
- ColumnResizeAdorner.cs
- CustomAttributeSerializer.cs
- CompilerErrorCollection.cs
- FillRuleValidation.cs
- TypeLibraryHelper.cs
- IdentityManager.cs
- SettingsAttributeDictionary.cs
- CqlLexerHelpers.cs
- XmlIncludeAttribute.cs
- XmlIgnoreAttribute.cs
- SqlCacheDependency.cs
- CryptoStream.cs
- WindowsGrip.cs
- PeerResolverElement.cs
- DispatchChannelSink.cs
- ConstructorNeedsTagAttribute.cs
- SqlClientFactory.cs
- EdmTypeAttribute.cs
- FormParameter.cs
- FusionWrap.cs
- Identifier.cs
- MasterPageParser.cs
- ServiceModelDictionary.cs
- SemanticResultKey.cs
- TranslateTransform.cs
- columnmapfactory.cs
- PathFigureCollectionValueSerializer.cs
- HighlightOverlayGlyph.cs
- BackgroundFormatInfo.cs
- AsymmetricCryptoHandle.cs
- ReachVisualSerializerAsync.cs
- LinearKeyFrames.cs
- HttpTransportBindingElement.cs
- SizeAnimation.cs
- SqlError.cs
- TraceFilter.cs
- EntityDesignerBuildProvider.cs
- MeasurementDCInfo.cs
- WebSysDefaultValueAttribute.cs
- HttpModuleActionCollection.cs
- Timeline.cs
- PeerApplication.cs
- DesignTimeDataBinding.cs
- DataTableCollection.cs
- HtmlInputSubmit.cs
- FlowDocumentPageViewerAutomationPeer.cs
- SimpleBitVector32.cs
- SecurityManager.cs
- XAMLParseException.cs
- DbTypeMap.cs
- FolderBrowserDialogDesigner.cs
- ExpressionLexer.cs
- PropertyValueUIItem.cs
- MexTcpBindingElement.cs
- VersionUtil.cs
- XmlAttributeAttribute.cs
- TypeValidationEventArgs.cs
- NullableConverter.cs
- RestHandlerFactory.cs
- MemberPath.cs
- MethodCallConverter.cs
- IndexedEnumerable.cs
- ToolBarButtonDesigner.cs
- TypeSemantics.cs
- CommandPlan.cs
- TypeUtil.cs
- FormViewUpdateEventArgs.cs
- RangeValuePatternIdentifiers.cs
- MDIControlStrip.cs
- SQLSingle.cs
- DateTimeOffset.cs
- BrushMappingModeValidation.cs
- RelationshipNavigation.cs
- AuthenticationConfig.cs
- TrackingServices.cs
- CqlLexerHelpers.cs
- DoubleStorage.cs
- MailWebEventProvider.cs
- ClosureBinding.cs
- StreamInfo.cs
- CTreeGenerator.cs
- AuthenticationModuleElement.cs
- CapabilitiesUse.cs
- UInt16.cs
- RadioButtonRenderer.cs
- URL.cs
- SqlClientMetaDataCollectionNames.cs
- DetailsView.cs
- XmlCharCheckingReader.cs