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
- DataGridViewCellValidatingEventArgs.cs
- BindingParameterCollection.cs
- TreePrinter.cs
- SqlCacheDependency.cs
- MsdtcClusterUtils.cs
- ExecutedRoutedEventArgs.cs
- StorageMappingFragment.cs
- ImageMap.cs
- relpropertyhelper.cs
- OdbcDataAdapter.cs
- WSSecurityTokenSerializer.cs
- EncryptedKey.cs
- Operand.cs
- SqlErrorCollection.cs
- DescendentsWalker.cs
- SecurityManager.cs
- ADMembershipProvider.cs
- StreamProxy.cs
- ImageAutomationPeer.cs
- XmlWrappingReader.cs
- LinqDataSourceValidationException.cs
- BaseCollection.cs
- DbProviderFactoriesConfigurationHandler.cs
- ReadOnlyState.cs
- StrokeNodeOperations.cs
- DynamicValidator.cs
- WeakEventTable.cs
- TreeNodeStyle.cs
- OdbcParameterCollection.cs
- TableLayoutCellPaintEventArgs.cs
- TextContainerChangedEventArgs.cs
- FSWPathEditor.cs
- XPathConvert.cs
- RichTextBox.cs
- GridViewColumnCollection.cs
- TextElementAutomationPeer.cs
- XmlWrappingWriter.cs
- RoutedPropertyChangedEventArgs.cs
- ByteRangeDownloader.cs
- ToolStripPanelCell.cs
- VectorCollectionValueSerializer.cs
- AutomationFocusChangedEventArgs.cs
- ILGenerator.cs
- DataSourceView.cs
- RNGCryptoServiceProvider.cs
- GrammarBuilderRuleRef.cs
- TailCallAnalyzer.cs
- Quaternion.cs
- CurrentTimeZone.cs
- QueueAccessMode.cs
- ResolveNameEventArgs.cs
- HandledMouseEvent.cs
- XpsS0ValidatingLoader.cs
- ResourceExpression.cs
- ActivityExecutionContext.cs
- RawUIStateInputReport.cs
- XmlSerializerVersionAttribute.cs
- ZoneButton.cs
- DataRowChangeEvent.cs
- NodeLabelEditEvent.cs
- ProxyManager.cs
- Vector.cs
- SchemaConstraints.cs
- UpdateEventArgs.cs
- XmlSchemaType.cs
- DataSourceView.cs
- WebPartZoneBaseDesigner.cs
- KeyNotFoundException.cs
- NativeMethods.cs
- PerspectiveCamera.cs
- PhonemeConverter.cs
- ToolBarButtonClickEvent.cs
- XmlTextWriter.cs
- ProxyFragment.cs
- BamlLocalizabilityResolver.cs
- InvalidOleVariantTypeException.cs
- PlainXmlWriter.cs
- AttachedAnnotationChangedEventArgs.cs
- HyperLink.cs
- ThreadExceptionEvent.cs
- OracleDateTime.cs
- HtmlShim.cs
- ModelVisual3D.cs
- PolyLineSegment.cs
- TextTreeRootNode.cs
- GAC.cs
- BreadCrumbTextConverter.cs
- HttpRuntimeSection.cs
- ArrayWithOffset.cs
- OverflowException.cs
- DbConnectionStringCommon.cs
- ObfuscateAssemblyAttribute.cs
- Cursor.cs
- HtmlElement.cs
- UnSafeCharBuffer.cs
- Comparer.cs
- Command.cs
- XmlQualifiedName.cs
- XmlCharType.cs
- ProfileSettingsCollection.cs