Code:
/ DotNET / DotNET / 8.0 / untmp / whidbey / REDBITS / ndp / fx / src / CompMod / System / CodeDOM / CodeDirectiveCollection.cs / 1 / CodeDirectiveCollection.cs
// ------------------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
// -----------------------------------------------------------------------------
//
namespace System.CodeDom {
using System;
using System.Collections;
using System.Runtime.InteropServices;
[
ClassInterface(ClassInterfaceType.AutoDispatch),
ComVisible(true),
Serializable()
]
public class CodeDirectiveCollection : CollectionBase {
public CodeDirectiveCollection() {
}
public CodeDirectiveCollection(CodeDirectiveCollection value) {
this.AddRange(value);
}
public CodeDirectiveCollection(CodeDirective[] value) {
this.AddRange(value);
}
public CodeDirective this[int index] {
get {
return ((CodeDirective)(List[index]));
}
set {
List[index] = value;
}
}
public int Add(CodeDirective value) {
return List.Add(value);
}
public void AddRange(CodeDirective[] value) {
if (value == null) {
throw new ArgumentNullException("value");
}
for (int i = 0; ((i) < (value.Length)); i = ((i) + (1))) {
this.Add(value[i]);
}
}
public void AddRange(CodeDirectiveCollection 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]);
}
}
public bool Contains(CodeDirective value) {
return List.Contains(value);
}
public void CopyTo(CodeDirective[] array, int index) {
List.CopyTo(array, index);
}
public int IndexOf(CodeDirective value) {
return List.IndexOf(value);
}
public void Insert(int index, CodeDirective value) {
List.Insert(index, value);
}
public void Remove(CodeDirective value) {
List.Remove(value);
}
}
}
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- RNGCryptoServiceProvider.cs
- ErrorHandlerFaultInfo.cs
- MetadataPropertyAttribute.cs
- COM2ColorConverter.cs
- EntityClassGenerator.cs
- LinqDataSourceView.cs
- EmptyQuery.cs
- Color.cs
- MetaData.cs
- AutomationPropertyInfo.cs
- RegexBoyerMoore.cs
- AllMembershipCondition.cs
- FunctionParameter.cs
- CustomAttributeFormatException.cs
- GeometryDrawing.cs
- PropertyMetadata.cs
- EmptyStringExpandableObjectConverter.cs
- DataViewSetting.cs
- TextTabProperties.cs
- StringValueConverter.cs
- QuadraticEase.cs
- DataControlPagerLinkButton.cs
- FileLogRecordStream.cs
- ProcessModelInfo.cs
- BeginEvent.cs
- HorizontalAlignConverter.cs
- ErrorFormatterPage.cs
- FolderBrowserDialog.cs
- Privilege.cs
- PackageProperties.cs
- XamlGridLengthSerializer.cs
- CssClassPropertyAttribute.cs
- WeakHashtable.cs
- RtfFormatStack.cs
- SelectionProviderWrapper.cs
- WebPartDisplayModeEventArgs.cs
- WebPartEditVerb.cs
- CalendarKeyboardHelper.cs
- XmlRawWriter.cs
- IIS7UserPrincipal.cs
- DeferredElementTreeState.cs
- XmlEncodedRawTextWriter.cs
- ObsoleteAttribute.cs
- Cursor.cs
- ErrorCodes.cs
- SourceLineInfo.cs
- BindingSourceDesigner.cs
- Point.cs
- ClientApiGenerator.cs
- DataExpression.cs
- Style.cs
- FileCodeGroup.cs
- PagerSettings.cs
- GradientStopCollection.cs
- SQLDateTime.cs
- PeerNameRecordCollection.cs
- ToolStripDesignerAvailabilityAttribute.cs
- XmlSignatureProperties.cs
- WebAdminConfigurationHelper.cs
- FileIOPermission.cs
- XmlDataLoader.cs
- XPathMultyIterator.cs
- EntityContainerRelationshipSet.cs
- TableLayoutRowStyleCollection.cs
- MatrixAnimationUsingPath.cs
- PrimitiveCodeDomSerializer.cs
- RichTextBox.cs
- Int16AnimationBase.cs
- IdnElement.cs
- XPathAncestorIterator.cs
- ObjectContextServiceProvider.cs
- LexicalChunk.cs
- DataSourceComponent.cs
- BasicBrowserDialog.designer.cs
- TextServicesContext.cs
- SafeMarshalContext.cs
- ToolStripItem.cs
- srgsitem.cs
- TypeRefElement.cs
- BoundColumn.cs
- DesignerTransaction.cs
- TiffBitmapEncoder.cs
- PrivilegedConfigurationManager.cs
- ArglessEventHandlerProxy.cs
- MultiByteCodec.cs
- HttpApplication.cs
- CollectionViewGroup.cs
- InkCanvasAutomationPeer.cs
- MenuAdapter.cs
- TimeSpanConverter.cs
- Renderer.cs
- WindowsScrollBarBits.cs
- WCFServiceClientProxyGenerator.cs
- HttpListenerResponse.cs
- DetailsViewRowCollection.cs
- BinaryObjectInfo.cs
- SafeCryptHandles.cs
- Parser.cs
- GenericPrincipal.cs
- HttpRequestCacheValidator.cs