Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // ------------------------------------------------------------------------------ //Removes a specific ///from the /// . // 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); } } } // 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
- AsyncDataRequest.cs
- TextRenderer.cs
- DocumentViewerAutomationPeer.cs
- AnnotationAuthorChangedEventArgs.cs
- XmlHierarchicalDataSourceView.cs
- GridViewCommandEventArgs.cs
- RuleCache.cs
- ArraySubsetEnumerator.cs
- AssemblyUtil.cs
- GridViewEditEventArgs.cs
- DataControlFieldHeaderCell.cs
- WmiInstallComponent.cs
- DbConnectionPoolOptions.cs
- TypedElement.cs
- FontSizeConverter.cs
- ToolStripDropDown.cs
- CalendarSelectionChangedEventArgs.cs
- ImmutableCollection.cs
- PenContext.cs
- RowSpanVector.cs
- TypeConverterHelper.cs
- References.cs
- InsufficientMemoryException.cs
- WmlLiteralTextAdapter.cs
- Publisher.cs
- DragSelectionMessageFilter.cs
- CssTextWriter.cs
- RoleManagerModule.cs
- HttpServerChannel.cs
- Part.cs
- SystemKeyConverter.cs
- HtmlTableRow.cs
- TraceSource.cs
- _LocalDataStore.cs
- XPathNodeIterator.cs
- Size.cs
- Inline.cs
- Journal.cs
- DesignConnectionCollection.cs
- XmlAttribute.cs
- MetadataArtifactLoaderCompositeFile.cs
- wgx_sdk_version.cs
- TextEditorParagraphs.cs
- FamilyCollection.cs
- DetailsViewRow.cs
- Helpers.cs
- CodeDOMProvider.cs
- EventMappingSettingsCollection.cs
- SqlNodeTypeOperators.cs
- ArrangedElement.cs
- ResourcesBuildProvider.cs
- ContractBase.cs
- XmlTypeMapping.cs
- PersonalizationStateInfo.cs
- ControlBuilderAttribute.cs
- XmlName.cs
- ExpandCollapseIsCheckedConverter.cs
- CounterSetInstanceCounterDataSet.cs
- WeakEventTable.cs
- Constants.cs
- ImageCreator.cs
- EventSourceCreationData.cs
- DataList.cs
- VScrollBar.cs
- LicenseException.cs
- UriTemplateTrieLocation.cs
- SqlDataSourceFilteringEventArgs.cs
- MappedMetaModel.cs
- DependencyPropertyDescriptor.cs
- TextFormatterContext.cs
- WebServicesInteroperability.cs
- FunctionParameter.cs
- SectionInformation.cs
- InstanceStoreQueryResult.cs
- XmlSerializerAssemblyAttribute.cs
- EncryptedType.cs
- ObjectFactoryCodeDomTreeGenerator.cs
- InteropDesigner.xaml.cs
- DataGridAutoFormatDialog.cs
- UnionExpr.cs
- MediaTimeline.cs
- NameObjectCollectionBase.cs
- BindingExpressionBase.cs
- ParallelTimeline.cs
- DbQueryCommandTree.cs
- SchemaMapping.cs
- OperatingSystem.cs
- control.ime.cs
- AttachmentCollection.cs
- MultiBindingExpression.cs
- XmlNullResolver.cs
- DataGridViewCellParsingEventArgs.cs
- ListenerServiceInstallComponent.cs
- TextTreeObjectNode.cs
- DispatchRuntime.cs
- WorkflowInstanceExtensionProvider.cs
- Matrix.cs
- GC.cs
- ReferenceTypeElement.cs
- PageStatePersister.cs