Code:
/ DotNET / DotNET / 8.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
- COAUTHINFO.cs
- XDRSchema.cs
- AssertFilter.cs
- MissingFieldException.cs
- UriExt.cs
- VisualTreeUtils.cs
- x509utils.cs
- UpDownEvent.cs
- ThumbAutomationPeer.cs
- VirtualDirectoryMappingCollection.cs
- TitleStyle.cs
- BindingWorker.cs
- DynamicResourceExtension.cs
- _LocalDataStoreMgr.cs
- GroupLabel.cs
- SerialErrors.cs
- LogicalMethodInfo.cs
- ISFClipboardData.cs
- ListItemCollection.cs
- TimeoutValidationAttribute.cs
- SecurityDescriptor.cs
- MemoryPressure.cs
- EnvelopedPkcs7.cs
- CallbackHandler.cs
- MinMaxParagraphWidth.cs
- SecurityListenerSettingsLifetimeManager.cs
- QuadraticBezierSegment.cs
- ProxySimple.cs
- LinqDataSourceView.cs
- GrammarBuilderRuleRef.cs
- SiteMapNodeCollection.cs
- SessionPageStatePersister.cs
- RightsManagementPermission.cs
- TickBar.cs
- FormClosedEvent.cs
- WmlPageAdapter.cs
- DependencyPropertyDescriptor.cs
- EventSinkHelperWriter.cs
- ComplexObject.cs
- ActiveXSite.cs
- SqlWriter.cs
- SecureConversationServiceCredential.cs
- SqlStream.cs
- WindowsFont.cs
- Perspective.cs
- VerificationAttribute.cs
- HtmlInputButton.cs
- WebSysDescriptionAttribute.cs
- TreeWalkHelper.cs
- StorageAssociationTypeMapping.cs
- DatagridviewDisplayedBandsData.cs
- _NetRes.cs
- TagPrefixAttribute.cs
- ServiceOperation.cs
- EntitySqlQueryCacheKey.cs
- DataServiceRequestException.cs
- RuntimeCompatibilityAttribute.cs
- DeflateEmulationStream.cs
- PowerStatus.cs
- ImageFormat.cs
- CultureTable.cs
- XmlWellformedWriter.cs
- EnumerationRangeValidationUtil.cs
- FilteredDataSetHelper.cs
- LayoutEditorPart.cs
- Point3DCollectionConverter.cs
- StylusButtonCollection.cs
- AnnotationResourceChangedEventArgs.cs
- SQLInt16Storage.cs
- Style.cs
- DesignerVerbCollection.cs
- MaterialGroup.cs
- Configuration.cs
- KnownTypeAttribute.cs
- DataControlImageButton.cs
- DotNetATv1WindowsLogEntrySerializer.cs
- CodePageEncoding.cs
- LinearGradientBrush.cs
- ScriptHandlerFactory.cs
- SevenBitStream.cs
- ResourceProperty.cs
- PropertyEntry.cs
- ToolStripItemEventArgs.cs
- DataGridPreparingCellForEditEventArgs.cs
- TextureBrush.cs
- TraceContext.cs
- SecUtil.cs
- CharacterBufferReference.cs
- XmlSchemaSimpleContent.cs
- WmlImageAdapter.cs
- UncommonField.cs
- ItemAutomationPeer.cs
- FontNamesConverter.cs
- DataControlButton.cs
- MetabaseSettings.cs
- ExtractorMetadata.cs
- BaseDataBoundControl.cs
- PolyBezierSegment.cs
- SystemGatewayIPAddressInformation.cs
- DataGridViewToolTip.cs