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
- IpcPort.cs
- SupportsEventValidationAttribute.cs
- ErrorLog.cs
- MouseEventArgs.cs
- PeerApplicationLaunchInfo.cs
- TableLayoutPanel.cs
- WorkflowOwnershipException.cs
- WebPartConnectionsCancelVerb.cs
- Drawing.cs
- XPathItem.cs
- TypeResolvingOptions.cs
- InputLanguageProfileNotifySink.cs
- ValidatingReaderNodeData.cs
- AlphaSortedEnumConverter.cs
- DesignTimeDataBinding.cs
- HiddenFieldPageStatePersister.cs
- MessagingDescriptionAttribute.cs
- ListItemConverter.cs
- StandardCommands.cs
- AggregateNode.cs
- IdentityElement.cs
- FormClosedEvent.cs
- TerminatorSinks.cs
- Item.cs
- PnrpPeerResolver.cs
- DllHostInitializer.cs
- VerificationAttribute.cs
- ObjectNavigationPropertyMapping.cs
- DelayedRegex.cs
- BCryptHashAlgorithm.cs
- ExpressionSelection.cs
- VirtualPath.cs
- URLString.cs
- ServiceModelConfigurationElementCollection.cs
- RootBrowserWindowProxy.cs
- Transform3D.cs
- RuntimeConfigurationRecord.cs
- DictionarySectionHandler.cs
- ConnectorDragDropGlyph.cs
- SqlTypesSchemaImporter.cs
- WebReferencesBuildProvider.cs
- Semaphore.cs
- Graph.cs
- XmlEntityReference.cs
- securitycriticaldata.cs
- LayoutEngine.cs
- CodeConstructor.cs
- SingleObjectCollection.cs
- DispatcherEventArgs.cs
- SparseMemoryStream.cs
- SiteMapNodeItemEventArgs.cs
- SchemaObjectWriter.cs
- ListBindingHelper.cs
- EntityRecordInfo.cs
- XD.cs
- ProcessInfo.cs
- DataGridViewSelectedColumnCollection.cs
- GetCardDetailsRequest.cs
- EntityDataSourceViewSchema.cs
- Msec.cs
- BreakRecordTable.cs
- SqlClientWrapperSmiStream.cs
- EventLogException.cs
- PropertyChangingEventArgs.cs
- DataColumnPropertyDescriptor.cs
- Baml2006ReaderContext.cs
- RawStylusSystemGestureInputReport.cs
- DesignerWebPartChrome.cs
- MulticastNotSupportedException.cs
- Util.cs
- RequestCacheValidator.cs
- TypeDescriptionProvider.cs
- FilterEventArgs.cs
- Model3DCollection.cs
- IListConverters.cs
- WebHeaderCollection.cs
- XmlAttributeProperties.cs
- SimpleFileLog.cs
- SpinLock.cs
- dbdatarecord.cs
- TriState.cs
- BulletedListEventArgs.cs
- GrammarBuilderDictation.cs
- CounterSample.cs
- MasterPage.cs
- DataGridBoolColumn.cs
- PointCollectionConverter.cs
- XmlSerializerNamespaces.cs
- httpstaticobjectscollection.cs
- ScrollViewer.cs
- SecurityContext.cs
- CodeTypeParameter.cs
- StackSpiller.Bindings.cs
- _NegoStream.cs
- HostedNamedPipeTransportManager.cs
- DotNetATv1WindowsLogEntryDeserializer.cs
- SecurityKeyUsage.cs
- RotationValidation.cs
- ListenerSessionConnectionReader.cs
- UIElementParaClient.cs