Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / CompMod / System / CodeDOM / CodeAttributeDeclarationCollection.cs / 1305376 / CodeAttributeDeclarationCollection.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 CodeAttributeDeclarationCollection : CollectionBase { ////// A collection that stores ///objects. /// /// public CodeAttributeDeclarationCollection() { } ////// Initializes a new instance of ///. /// /// public CodeAttributeDeclarationCollection(CodeAttributeDeclarationCollection value) { this.AddRange(value); } ////// Initializes a new instance of ///based on another . /// /// public CodeAttributeDeclarationCollection(CodeAttributeDeclaration[] value) { this.AddRange(value); } ////// Initializes a new instance of ///containing any array of objects. /// /// public CodeAttributeDeclaration this[int index] { get { return ((CodeAttributeDeclaration)(List[index])); } set { List[index] = value; } } ///Represents the entry at the specified index of the ///. /// public int Add(CodeAttributeDeclaration value) { return List.Add(value); } ///Adds a ///with the specified value to the /// . /// public void AddRange(CodeAttributeDeclaration[] 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(CodeAttributeDeclarationCollection 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(CodeAttributeDeclaration value) { return List.Contains(value); } ///Gets a value indicating whether the /// ///contains the specified . /// public void CopyTo(CodeAttributeDeclaration[] array, int index) { List.CopyTo(array, index); } ///Copies the ///values to a one-dimensional instance at the /// specified index. /// public int IndexOf(CodeAttributeDeclaration value) { return List.IndexOf(value); } ///Returns the index of a ///in /// the . /// public void Insert(int index, CodeAttributeDeclaration value) { List.Insert(index, value); } ///Inserts a ///into the at the specified index. /// public void Remove(CodeAttributeDeclaration 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
- ConfigXmlCDataSection.cs
- DefaultObjectMappingItemCollection.cs
- RegistrationContext.cs
- TextTabProperties.cs
- WebRequestModuleElement.cs
- IPPacketInformation.cs
- ServiceNameElementCollection.cs
- _BufferOffsetSize.cs
- IERequestCache.cs
- NonClientArea.cs
- SecurityIdentifierElement.cs
- WindowsRichEdit.cs
- FormViewPageEventArgs.cs
- ProfileModule.cs
- DataTableCollection.cs
- DataSourceListEditor.cs
- ConsumerConnectionPoint.cs
- TextBoxAutomationPeer.cs
- NavigationProperty.cs
- ComponentEditorPage.cs
- Setter.cs
- EntityContainerEmitter.cs
- NumericPagerField.cs
- MultiTrigger.cs
- PreservationFileWriter.cs
- FileDialog_Vista_Interop.cs
- ImportOptions.cs
- SqlFileStream.cs
- TemplatePartAttribute.cs
- ViewGenerator.cs
- ToolStripRendererSwitcher.cs
- Label.cs
- ToolStripOverflowButton.cs
- MenuItemStyleCollectionEditor.cs
- TransformedBitmap.cs
- LinkUtilities.cs
- StringValidator.cs
- BitmapScalingModeValidation.cs
- DataViewSetting.cs
- InputMethod.cs
- ClientType.cs
- NestedContainer.cs
- ImageIndexConverter.cs
- ProfileProvider.cs
- EventProviderBase.cs
- QueryOptionExpression.cs
- WebPartsPersonalizationAuthorization.cs
- TextRangeAdaptor.cs
- HScrollBar.cs
- FileVersionInfo.cs
- ApplicationFileParser.cs
- ProfileService.cs
- TextDocumentView.cs
- InputProviderSite.cs
- TextEmbeddedObject.cs
- Math.cs
- HttpCacheParams.cs
- ServiceHttpModule.cs
- ParameterBinding.cs
- AddInToken.cs
- EntityDataSourceState.cs
- Label.cs
- SqlClientMetaDataCollectionNames.cs
- DetailsViewPageEventArgs.cs
- ImageMapEventArgs.cs
- ChameleonKey.cs
- StatusBarDrawItemEvent.cs
- GridView.cs
- ConnectionManagementElement.cs
- DebugView.cs
- xml.cs
- CustomLineCap.cs
- MultiAsyncResult.cs
- TabItem.cs
- ValidationSummary.cs
- DataGridViewCellLinkedList.cs
- ExclusiveHandle.cs
- Stackframe.cs
- ScriptReferenceEventArgs.cs
- Lasso.cs
- BooleanConverter.cs
- IgnoreFlushAndCloseStream.cs
- Ray3DHitTestResult.cs
- SchemaNames.cs
- SBCSCodePageEncoding.cs
- HttpRuntime.cs
- ItemContainerGenerator.cs
- ObjectComplexPropertyMapping.cs
- StorageAssociationSetMapping.cs
- TaskHelper.cs
- SoapMessage.cs
- StubHelpers.cs
- EntityCommand.cs
- PeerEndPoint.cs
- OutOfProcStateClientManager.cs
- PermissionAttributes.cs
- Vector3D.cs
- ConsoleCancelEventArgs.cs
- OleDbConnection.cs
- Accessible.cs