Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / CompMod / System / CodeDOM / CodeTypeDeclarationCollection.cs / 1305376 / CodeTypeDeclarationCollection.cs
// ------------------------------------------------------------------------------ //// // // ----------------------------------------------------------------------------- // namespace System.CodeDom { using System; using System.Collections; using System.Runtime.InteropServices; ///[....] // Copyright (c) Microsoft Corporation. All rights reserved. ///// [ ClassInterface(ClassInterfaceType.AutoDispatch), ComVisible(true), Serializable, ] public class CodeTypeDeclarationCollection : CollectionBase { ////// A collection that stores ///objects. /// /// public CodeTypeDeclarationCollection() { } ////// Initializes a new instance of ///. /// /// public CodeTypeDeclarationCollection(CodeTypeDeclarationCollection value) { this.AddRange(value); } ////// Initializes a new instance of ///based on another . /// /// public CodeTypeDeclarationCollection(CodeTypeDeclaration[] value) { this.AddRange(value); } ////// Initializes a new instance of ///containing any array of objects. /// /// public CodeTypeDeclaration this[int index] { get { return ((CodeTypeDeclaration)(List[index])); } set { List[index] = value; } } ///Represents the entry at the specified index of the ///. /// public int Add(CodeTypeDeclaration value) { return List.Add(value); } ///Adds a ///with the specified value to the /// . /// public void AddRange(CodeTypeDeclaration[] value) { if (value == null) { throw new ArgumentNullException("value"); } for (int i = 0; ((i) < (value.Length)); i = ((i) + (1))) { this.Add(value[i]); } } ///Copies the elements of an array to the end of the ///. /// public void AddRange(CodeTypeDeclarationCollection 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]); } } ////// Adds the contents of another ///to the end of the collection. /// /// public bool Contains(CodeTypeDeclaration value) { return List.Contains(value); } ///Gets a value indicating whether the /// ///contains the specified . /// public void CopyTo(CodeTypeDeclaration[] array, int index) { List.CopyTo(array, index); } ///Copies the ///values to a one-dimensional instance at the /// specified index. /// public int IndexOf(CodeTypeDeclaration value) { return List.IndexOf(value); } ///Returns the index of a ///in /// the . /// public void Insert(int index, CodeTypeDeclaration value) { List.Insert(index, value); } ///Inserts a ///into the at the specified index. /// public void Remove(CodeTypeDeclaration value) { List.Remove(value); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007.Removes a specific ///from the /// .
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- InstanceDataCollection.cs
- TitleStyle.cs
- FindCriteriaApril2005.cs
- PackageRelationship.cs
- SqlProviderManifest.cs
- SelectionItemPattern.cs
- PreservationFileWriter.cs
- EncryptedHeader.cs
- ObjectStateFormatter.cs
- ViewRendering.cs
- InvalidFilterCriteriaException.cs
- DeviceOverridableAttribute.cs
- GenericTextProperties.cs
- coordinatorscratchpad.cs
- HttpCapabilitiesEvaluator.cs
- CheckBoxAutomationPeer.cs
- ListItemCollection.cs
- XhtmlBasicControlAdapter.cs
- SafeEventLogWriteHandle.cs
- DecoderBestFitFallback.cs
- WindowsFormsHelpers.cs
- LoginName.cs
- ConfigurationSchemaErrors.cs
- ReadOnlyDataSource.cs
- ServiceKnownTypeAttribute.cs
- LinkButton.cs
- SafeArrayTypeMismatchException.cs
- TextRange.cs
- AppModelKnownContentFactory.cs
- PasswordDeriveBytes.cs
- IgnorePropertiesAttribute.cs
- ListParaClient.cs
- PageOrientation.cs
- MsmqChannelFactoryBase.cs
- WindowsListViewGroupHelper.cs
- PanelStyle.cs
- TableRowCollection.cs
- SqlServer2KCompatibilityAnnotation.cs
- CodeDirectoryCompiler.cs
- ExpressionConverter.cs
- WindowsButton.cs
- RelationshipNavigation.cs
- DesignerWebPartChrome.cs
- SqlFormatter.cs
- OdbcConnectionString.cs
- CollectionsUtil.cs
- UpdateCommandGenerator.cs
- ActiveDesignSurfaceEvent.cs
- ArgumentOutOfRangeException.cs
- FlagPanel.cs
- ButtonStandardAdapter.cs
- XsdBuildProvider.cs
- DataSourceHelper.cs
- HtmlSelect.cs
- AppDomain.cs
- OletxDependentTransaction.cs
- AlphaSortedEnumConverter.cs
- EntityProviderServices.cs
- ListManagerBindingsCollection.cs
- UnmanagedMarshal.cs
- oledbmetadatacollectionnames.cs
- Dump.cs
- ListBoxItemWrapperAutomationPeer.cs
- KnownBoxes.cs
- Native.cs
- Currency.cs
- WebException.cs
- BaseValidator.cs
- TaskExceptionHolder.cs
- SqlDataSourceCommandEventArgs.cs
- TrustVersion.cs
- ToolboxItemAttribute.cs
- ContentType.cs
- BaseCAMarshaler.cs
- IIS7WorkerRequest.cs
- TextTreeText.cs
- UInt32Converter.cs
- ArithmeticException.cs
- Condition.cs
- CompilerScope.Storage.cs
- KerberosSecurityTokenAuthenticator.cs
- AddInIpcChannel.cs
- ListDictionary.cs
- ObjectStorage.cs
- VisualStyleInformation.cs
- DBPropSet.cs
- ISCIIEncoding.cs
- RelationshipEnd.cs
- MachineKeyValidationConverter.cs
- InlinedAggregationOperatorEnumerator.cs
- WebPartManagerInternals.cs
- DataRowComparer.cs
- TableCell.cs
- OleDbWrapper.cs
- RSAPKCS1SignatureFormatter.cs
- ImmComposition.cs
- ErrorStyle.cs
- Decimal.cs
- PropertyMapper.cs
- Int32Animation.cs