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
- NotifyParentPropertyAttribute.cs
- TextTreeRootTextBlock.cs
- MetadataSerializer.cs
- UserControlCodeDomTreeGenerator.cs
- CopyCodeAction.cs
- AmbientValueAttribute.cs
- Metafile.cs
- TranslateTransform.cs
- ConfigurationLockCollection.cs
- SimpleWebHandlerParser.cs
- NameValueConfigurationCollection.cs
- ZipIORawDataFileBlock.cs
- ProfessionalColors.cs
- HttpWebRequestElement.cs
- DeploymentExceptionMapper.cs
- RightsManagementInformation.cs
- CapabilitiesSection.cs
- Int64Animation.cs
- DataRecordObjectView.cs
- TTSEngineProxy.cs
- RtfToXamlLexer.cs
- TimeSpanMinutesOrInfiniteConverter.cs
- XmlSerializerNamespaces.cs
- WebPartDescription.cs
- PersonalizationStateInfoCollection.cs
- RawStylusActions.cs
- DynamicMethod.cs
- TreeViewImageIndexConverter.cs
- Graphics.cs
- CharacterShapingProperties.cs
- SortDescriptionCollection.cs
- ApplicationFileParser.cs
- FixedTextBuilder.cs
- DataShape.cs
- _AutoWebProxyScriptHelper.cs
- DataRow.cs
- DispatchWrapper.cs
- DynamicControl.cs
- ListBoxAutomationPeer.cs
- RoleBoolean.cs
- ResourceDescriptionAttribute.cs
- DesignerSerializationOptionsAttribute.cs
- ScrollViewerAutomationPeer.cs
- ParallelActivityDesigner.cs
- GridViewDeleteEventArgs.cs
- ActiveDocumentEvent.cs
- CodePageEncoding.cs
- ListDictionary.cs
- QuadTree.cs
- TemplateColumn.cs
- ProcessHostConfigUtils.cs
- DataGridViewButtonCell.cs
- CompatibleComparer.cs
- ManifestSignedXml.cs
- SqlConnectionFactory.cs
- x509utils.cs
- StringInfo.cs
- ServerType.cs
- ClientSession.cs
- SiteMapSection.cs
- ReliableChannelBinder.cs
- TaiwanLunisolarCalendar.cs
- _ProxyChain.cs
- WmpBitmapDecoder.cs
- ListenerElementsCollection.cs
- HorizontalAlignConverter.cs
- ObjectQuery.cs
- TextElementEnumerator.cs
- ChildChangedEventArgs.cs
- BitmapMetadataEnumerator.cs
- MultipartContentParser.cs
- KeyTimeConverter.cs
- ProfilePropertySettingsCollection.cs
- PropertyDescriptorComparer.cs
- MouseActionValueSerializer.cs
- SqlMetaData.cs
- AggregateNode.cs
- FieldToken.cs
- SortableBindingList.cs
- BlockCollection.cs
- CompModHelpers.cs
- MobileSysDescriptionAttribute.cs
- EventItfInfo.cs
- XhtmlStyleClass.cs
- MenuItemCollection.cs
- NativeConfigurationLoader.cs
- HttpCapabilitiesBase.cs
- Funcletizer.cs
- ComPlusInstanceProvider.cs
- ToolStripItemRenderEventArgs.cs
- CodeAttributeArgument.cs
- XXXInfos.cs
- HtmlTextArea.cs
- TypeSystem.cs
- HtmlInputControl.cs
- XmlEnumAttribute.cs
- SynchronizingStream.cs
- SurrogateChar.cs
- InheritanceContextHelper.cs
- EventLogPermissionEntry.cs