Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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
- BrushMappingModeValidation.cs
- Attribute.cs
- DefaultSettingsSection.cs
- MouseActionValueSerializer.cs
- MeshGeometry3D.cs
- ServicePointManagerElement.cs
- KnownBoxes.cs
- XmlIlGenerator.cs
- Vector3DCollectionValueSerializer.cs
- XmlAttributeOverrides.cs
- Point.cs
- ItemsControlAutomationPeer.cs
- BinaryNode.cs
- SortDescription.cs
- Attribute.cs
- ObfuscationAttribute.cs
- XmlSchemaFacet.cs
- ReceiveActivity.cs
- ScriptIgnoreAttribute.cs
- ComponentEvent.cs
- ListenDesigner.cs
- SessionStateItemCollection.cs
- ListViewTableRow.cs
- DropShadowEffect.cs
- ServiceMetadataBehavior.cs
- Help.cs
- SchemaImporterExtension.cs
- GridProviderWrapper.cs
- XamlToRtfParser.cs
- HttpRequest.cs
- Exceptions.cs
- XmlSchema.cs
- ImportContext.cs
- BuildResult.cs
- SqlCacheDependency.cs
- CqlQuery.cs
- StrokeFIndices.cs
- BookmarkUndoUnit.cs
- MetadataHelper.cs
- ConfigurationStrings.cs
- CaseCqlBlock.cs
- DecimalStorage.cs
- CapabilitiesPattern.cs
- __Error.cs
- dbdatarecord.cs
- _TLSstream.cs
- EventLogReader.cs
- Duration.cs
- SynchronizationLockException.cs
- HandlerWithFactory.cs
- WindowsStreamSecurityElement.cs
- PartialCachingControl.cs
- DataGridViewButtonCell.cs
- ObjectManager.cs
- NullableDoubleSumAggregationOperator.cs
- AnnotationResourceCollection.cs
- DataGridViewIntLinkedList.cs
- NativeMethods.cs
- DefaultObjectMappingItemCollection.cs
- HeaderCollection.cs
- log.cs
- AutomationElementCollection.cs
- TargetInvocationException.cs
- XmlDownloadManager.cs
- DataViewManager.cs
- KeyedHashAlgorithm.cs
- IdentifierService.cs
- ServicePointManagerElement.cs
- _StreamFramer.cs
- templategroup.cs
- AsyncOperation.cs
- ListParagraph.cs
- CodeNamespaceImport.cs
- CompilationLock.cs
- TrackingMemoryStream.cs
- Message.cs
- LinkLabel.cs
- Point3D.cs
- CodeChecksumPragma.cs
- DelayDesigner.cs
- RadioButtonBaseAdapter.cs
- QilVisitor.cs
- CheckBoxFlatAdapter.cs
- RuntimeEnvironment.cs
- CmsInterop.cs
- HttpProfileBase.cs
- PropertyConverter.cs
- SecureEnvironment.cs
- DataGridViewColumnEventArgs.cs
- CodeLabeledStatement.cs
- WebPartConnectionsEventArgs.cs
- TraceUtils.cs
- PanelStyle.cs
- BinaryMethodMessage.cs
- MarkupCompiler.cs
- TextTreeObjectNode.cs
- Not.cs
- MonitorWrapper.cs
- TypeForwardedToAttribute.cs
- ScriptingWebServicesSectionGroup.cs