Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / CompMod / System / CodeDOM / CodeTypeDeclarationCollection.cs / 1305376 / CodeTypeDeclarationCollection.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 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 /// . // // // ----------------------------------------------------------------------------- // 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 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
- PlatformCulture.cs
- Wizard.cs
- ClientRuntimeConfig.cs
- ComPersistableTypeElement.cs
- BatchStream.cs
- SerializationInfoEnumerator.cs
- _ShellExpression.cs
- SmtpSection.cs
- RefExpr.cs
- ProviderConnectionPointCollection.cs
- Rect.cs
- TemplateBuilder.cs
- SqlNodeAnnotation.cs
- UInt32.cs
- EllipticalNodeOperations.cs
- RelationshipDetailsRow.cs
- VariableQuery.cs
- EntityConnectionStringBuilder.cs
- StringSorter.cs
- RegexCapture.cs
- ThicknessAnimationUsingKeyFrames.cs
- EntitySetDataBindingList.cs
- ImagingCache.cs
- SystemNetworkInterface.cs
- WindowShowOrOpenTracker.cs
- HttpResponse.cs
- TypeDescriptionProviderAttribute.cs
- TypeSemantics.cs
- CustomTrackingQuery.cs
- TTSEngineTypes.cs
- DesignerSerializerAttribute.cs
- DataGridTextColumn.cs
- MetroSerializationManager.cs
- SecurityUtils.cs
- EntityDataSourceDesigner.cs
- InfoCardX509Validator.cs
- SoapElementAttribute.cs
- TabPage.cs
- DataGridViewCell.cs
- StreamInfo.cs
- PasswordDeriveBytes.cs
- WindowsFormsEditorServiceHelper.cs
- InfoCardCryptoHelper.cs
- HtmlLinkAdapter.cs
- AutomationProperties.cs
- ResourcesGenerator.cs
- WebUtil.cs
- CssTextWriter.cs
- ChineseLunisolarCalendar.cs
- ListBoxChrome.cs
- EventToken.cs
- DataGridViewColumnHeaderCell.cs
- StreamingContext.cs
- StorageConditionPropertyMapping.cs
- ConfigXmlText.cs
- HostUtils.cs
- AppDomainFactory.cs
- AppDomainFactory.cs
- SqlRowUpdatedEvent.cs
- AlternateViewCollection.cs
- MultipartContentParser.cs
- HttpPostedFile.cs
- Relationship.cs
- NamespaceMapping.cs
- MinimizableAttributeTypeConverter.cs
- VisualStyleInformation.cs
- ProviderSettings.cs
- DataServiceBehavior.cs
- SelectionItemPattern.cs
- UpdatePanelTrigger.cs
- ObjectSet.cs
- ProcessManager.cs
- DataGridPageChangedEventArgs.cs
- Vector3dCollection.cs
- TrackingProfile.cs
- BinaryNode.cs
- PageSetupDialog.cs
- SvcMapFileLoader.cs
- FirstMatchCodeGroup.cs
- ManualResetEvent.cs
- ResponseBodyWriter.cs
- OracleInternalConnection.cs
- CodeMemberProperty.cs
- EntityCodeGenerator.cs
- EventWaitHandle.cs
- NonParentingControl.cs
- RectangleHotSpot.cs
- ObjectStateFormatter.cs
- SmtpException.cs
- NullableDoubleAverageAggregationOperator.cs
- ArrayList.cs
- UrlMappingsModule.cs
- ClientType.cs
- MasterPageBuildProvider.cs
- CombinedGeometry.cs
- XmlArrayAttribute.cs
- NavigationPropertyEmitter.cs
- Color.cs
- ParagraphVisual.cs
- TextTreeObjectNode.cs