Code:
/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / ndp / fx / src / CompMod / System / CodeDOM / CodeTypeDeclarationCollection.cs / 1 / CodeTypeDeclarationCollection.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 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); } } }Removes a specific ///from the /// .
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- ContainsSearchOperator.cs
- PatternMatcher.cs
- FileEnumerator.cs
- xmlsaver.cs
- GridViewDeletedEventArgs.cs
- BindingListCollectionView.cs
- PieceNameHelper.cs
- HttpCachePolicy.cs
- StylusOverProperty.cs
- SizeValueSerializer.cs
- SQLRoleProvider.cs
- DBSchemaRow.cs
- IndexedString.cs
- SmiEventSink.cs
- IPipelineRuntime.cs
- WebPartDescriptionCollection.cs
- RefreshEventArgs.cs
- DbConnectionPoolIdentity.cs
- invalidudtexception.cs
- ItemCheckedEvent.cs
- RTTypeWrapper.cs
- ImageListImageEditor.cs
- TCPListener.cs
- ClientEventManager.cs
- DrawItemEvent.cs
- LocalizationParserHooks.cs
- TextMarkerSource.cs
- DockPattern.cs
- DependencyPropertyChangedEventArgs.cs
- ImageField.cs
- SchemaElementLookUpTable.cs
- DesignerLoader.cs
- StyleXamlParser.cs
- LineProperties.cs
- StorageComplexPropertyMapping.cs
- PointCollection.cs
- ParsedAttributeCollection.cs
- QueryOptionExpression.cs
- WindowAutomationPeer.cs
- Int64KeyFrameCollection.cs
- StructuredTypeInfo.cs
- SoapClientProtocol.cs
- KnownTypesHelper.cs
- CircleHotSpot.cs
- ScrollChrome.cs
- SchemaExporter.cs
- BooleanExpr.cs
- Sequence.cs
- UnionQueryOperator.cs
- MsmqOutputSessionChannel.cs
- DocumentViewerConstants.cs
- ValueProviderWrapper.cs
- AtomServiceDocumentSerializer.cs
- FontFaceLayoutInfo.cs
- MD5.cs
- KeyValuePair.cs
- CqlParserHelpers.cs
- SQLGuidStorage.cs
- RequestTimeoutManager.cs
- FormClosedEvent.cs
- LongMinMaxAggregationOperator.cs
- FilterQueryOptionExpression.cs
- RewritingValidator.cs
- AnnouncementSendsAsyncResult.cs
- LinqDataSourceDeleteEventArgs.cs
- Attachment.cs
- WrappedKeySecurityToken.cs
- IxmlLineInfo.cs
- DateBoldEvent.cs
- EntityModelBuildProvider.cs
- XmlSchemaDatatype.cs
- DataGridCell.cs
- NamedElement.cs
- EventLogEntry.cs
- DataBoundControlHelper.cs
- TreeView.cs
- PauseStoryboard.cs
- AutomationPropertyInfo.cs
- ListViewGroup.cs
- Ipv6Element.cs
- Page.cs
- MethodAccessException.cs
- KeyFrames.cs
- MetadataArtifactLoaderCompositeFile.cs
- DataGridViewRowsRemovedEventArgs.cs
- SspiWrapper.cs
- TextBoxDesigner.cs
- BufferedGenericXmlSecurityToken.cs
- Tokenizer.cs
- ItemChangedEventArgs.cs
- BindingListCollectionView.cs
- Enum.cs
- AssemblyAssociatedContentFileAttribute.cs
- SqlComparer.cs
- PageThemeParser.cs
- IsolationInterop.cs
- LessThanOrEqual.cs
- OciLobLocator.cs
- FixedSOMTableRow.cs
- Latin1Encoding.cs