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
- TemplateColumn.cs
- Container.cs
- SpnegoTokenProvider.cs
- ExtensionDataReader.cs
- Table.cs
- XmlLangPropertyAttribute.cs
- Calendar.cs
- FloaterParagraph.cs
- XmlQualifiedNameTest.cs
- VirtualPathUtility.cs
- CapabilitiesState.cs
- ReadOnlyTernaryTree.cs
- SqlSupersetValidator.cs
- XmlSerializerAssemblyAttribute.cs
- SolidBrush.cs
- CurrentChangedEventManager.cs
- BuildResult.cs
- SourceChangedEventArgs.cs
- XmlSchemaValidator.cs
- DesignerLoader.cs
- UserInitiatedRoutedEventPermissionAttribute.cs
- InvalidOleVariantTypeException.cs
- SecurityResources.cs
- FrameSecurityDescriptor.cs
- StringKeyFrameCollection.cs
- SymbolDocumentGenerator.cs
- Utils.cs
- PackagingUtilities.cs
- DataStorage.cs
- TraceXPathNavigator.cs
- Positioning.cs
- Tuple.cs
- XPathMultyIterator.cs
- CLSCompliantAttribute.cs
- ConnectionPoolManager.cs
- AttributeUsageAttribute.cs
- PagePropertiesChangingEventArgs.cs
- StrongNameIdentityPermission.cs
- XmlNodeReader.cs
- DragDeltaEventArgs.cs
- TableRow.cs
- Boolean.cs
- Stroke2.cs
- OLEDB_Util.cs
- EntityDataSourceContainerNameConverter.cs
- FirewallWrapper.cs
- FindCriteriaApril2005.cs
- glyphs.cs
- FolderNameEditor.cs
- GroupByExpressionRewriter.cs
- HttpResponseBase.cs
- Certificate.cs
- StringFormat.cs
- BuildProvider.cs
- SoapAttributeAttribute.cs
- XomlCompilerHelpers.cs
- HwndHostAutomationPeer.cs
- StorageEntityContainerMapping.cs
- StylusPointCollection.cs
- IndexExpression.cs
- RequestUriProcessor.cs
- FixedDocument.cs
- NominalTypeEliminator.cs
- GregorianCalendar.cs
- DrawingImage.cs
- ModelTreeEnumerator.cs
- ImageField.cs
- WorkflowMarkupSerializationProvider.cs
- GridViewRowPresenter.cs
- ImageClickEventArgs.cs
- StorageMappingFragment.cs
- SuppressMergeCheckAttribute.cs
- ExpressionPrefixAttribute.cs
- Matrix.cs
- WindowsRichEdit.cs
- AudioLevelUpdatedEventArgs.cs
- SpellerInterop.cs
- TextBoxLine.cs
- IriParsingElement.cs
- MultiSelectRootGridEntry.cs
- ConditionalBranch.cs
- PostBackOptions.cs
- OracleTransaction.cs
- DispatcherExceptionEventArgs.cs
- InputDevice.cs
- NameTable.cs
- TimeZoneNotFoundException.cs
- SqlDataSourceFilteringEventArgs.cs
- WebConfigurationFileMap.cs
- DebugView.cs
- PolicyException.cs
- ParseElement.cs
- WpfKnownMemberInvoker.cs
- WinFormsSecurity.cs
- ListItem.cs
- SessionSwitchEventArgs.cs
- SiteMap.cs
- TdsParserHelperClasses.cs
- SQLChars.cs
- RootProjectionNode.cs