Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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
- TaiwanCalendar.cs
- SessionStateUtil.cs
- WebBrowserContainer.cs
- ColorConvertedBitmap.cs
- SafeArrayTypeMismatchException.cs
- ParameterModifier.cs
- OutputCacheSettingsSection.cs
- CodeAttributeArgumentCollection.cs
- NullReferenceException.cs
- DiscoveryService.cs
- AutomationPropertyInfo.cs
- WindowsMenu.cs
- WebControl.cs
- Content.cs
- InvalidTimeZoneException.cs
- DbConnectionInternal.cs
- IPHostEntry.cs
- Image.cs
- TextDpi.cs
- Geometry.cs
- DataGridViewRowsAddedEventArgs.cs
- StylusPoint.cs
- SecurityBindingElement.cs
- CodePrimitiveExpression.cs
- VisualBasicSettingsHandler.cs
- DataSourceConverter.cs
- HitTestParameters.cs
- ArraySortHelper.cs
- XmlNodeWriter.cs
- WebDisplayNameAttribute.cs
- OracleCommandSet.cs
- TextEffect.cs
- MediaContext.cs
- XmlSchemaSimpleContentExtension.cs
- OdbcError.cs
- Baml2006KnownTypes.cs
- JsonDeserializer.cs
- QualificationDataItem.cs
- URL.cs
- VirtualDirectoryMapping.cs
- ColumnTypeConverter.cs
- SuppressedPackageProperties.cs
- InkCanvasInnerCanvas.cs
- WebPartTransformerCollection.cs
- BaseValidator.cs
- RecordManager.cs
- SlotInfo.cs
- AttributeCallbackBuilder.cs
- ASCIIEncoding.cs
- GradientStop.cs
- OracleException.cs
- OutgoingWebResponseContext.cs
- FileCodeGroup.cs
- CompilerCollection.cs
- _AuthenticationState.cs
- ClassImporter.cs
- XPathNavigator.cs
- FullTrustAssemblyCollection.cs
- HashHelper.cs
- AliasGenerator.cs
- DefaultBinder.cs
- BitmapEffectvisualstate.cs
- AnimationClock.cs
- ImmComposition.cs
- BitVector32.cs
- SslStreamSecurityElement.cs
- CodeGenerator.cs
- PropertyInformation.cs
- DataGridViewLinkCell.cs
- CodeGenerator.cs
- securitymgrsite.cs
- VersionPair.cs
- __ConsoleStream.cs
- TraceProvider.cs
- QueryRewriter.cs
- RangeValidator.cs
- WebControlsSection.cs
- Accessible.cs
- TypedDataSetSchemaImporterExtension.cs
- LicFileLicenseProvider.cs
- DataSourceConverter.cs
- ResourceDefaultValueAttribute.cs
- OutputCacheSettingsSection.cs
- Assert.cs
- GridEntry.cs
- CultureTableRecord.cs
- BitmapEffectOutputConnector.cs
- PageContentAsyncResult.cs
- SslStreamSecurityElement.cs
- CustomErrorsSection.cs
- RewritingSimplifier.cs
- ConstNode.cs
- IRCollection.cs
- MailAddressCollection.cs
- FontFamilyValueSerializer.cs
- ActionFrame.cs
- RetrieveVirtualItemEventArgs.cs
- RuntimeConfig.cs
- PersistenceProviderElement.cs
- PropertyStore.cs