Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / ndp / fx / src / CompMod / System / CodeDOM / CodeTypeMemberCollection.cs / 1 / CodeTypeMemberCollection.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 CodeTypeMemberCollection : CollectionBase { ////// A collection that stores ///objects. /// /// public CodeTypeMemberCollection() { } ////// Initializes a new instance of ///. /// /// public CodeTypeMemberCollection(CodeTypeMemberCollection value) { this.AddRange(value); } ////// Initializes a new instance of ///based on another . /// /// public CodeTypeMemberCollection(CodeTypeMember[] value) { this.AddRange(value); } ////// Initializes a new instance of ///containing any array of objects. /// /// public CodeTypeMember this[int index] { get { return ((CodeTypeMember)(List[index])); } set { List[index] = value; } } ///Represents the entry at the specified index of the ///. /// public int Add(CodeTypeMember value) { return List.Add(value); } ///Adds a ///with the specified value to the /// . /// public void AddRange(CodeTypeMember[] 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(CodeTypeMemberCollection 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(CodeTypeMember value) { return List.Contains(value); } ///Gets a value indicating whether the /// ///contains the specified . /// public void CopyTo(CodeTypeMember[] array, int index) { List.CopyTo(array, index); } ///Copies the ///values to a one-dimensional instance at the /// specified index. /// public int IndexOf(CodeTypeMember value) { return List.IndexOf(value); } ///Returns the index of a ///in /// the . /// public void Insert(int index, CodeTypeMember value) { List.Insert(index, value); } ///Inserts a ///into the at the specified index. /// public void Remove(CodeTypeMember 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 CodeTypeMemberCollection : CollectionBase { ////// A collection that stores ///objects. /// /// public CodeTypeMemberCollection() { } ////// Initializes a new instance of ///. /// /// public CodeTypeMemberCollection(CodeTypeMemberCollection value) { this.AddRange(value); } ////// Initializes a new instance of ///based on another . /// /// public CodeTypeMemberCollection(CodeTypeMember[] value) { this.AddRange(value); } ////// Initializes a new instance of ///containing any array of objects. /// /// public CodeTypeMember this[int index] { get { return ((CodeTypeMember)(List[index])); } set { List[index] = value; } } ///Represents the entry at the specified index of the ///. /// public int Add(CodeTypeMember value) { return List.Add(value); } ///Adds a ///with the specified value to the /// . /// public void AddRange(CodeTypeMember[] 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(CodeTypeMemberCollection 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(CodeTypeMember value) { return List.Contains(value); } ///Gets a value indicating whether the /// ///contains the specified . /// public void CopyTo(CodeTypeMember[] array, int index) { List.CopyTo(array, index); } ///Copies the ///values to a one-dimensional instance at the /// specified index. /// public int IndexOf(CodeTypeMember value) { return List.IndexOf(value); } ///Returns the index of a ///in /// the . /// public void Insert(int index, CodeTypeMember value) { List.Insert(index, value); } ///Inserts a ///into the at the specified index. /// public void Remove(CodeTypeMember 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
- WrappedReader.cs
- Mappings.cs
- WebPartTransformerCollection.cs
- HttpApplicationFactory.cs
- AvTraceDetails.cs
- VirtualDirectoryMapping.cs
- SqlHelper.cs
- SessionStateItemCollection.cs
- UpdateManifestForBrowserApplication.cs
- TextModifier.cs
- WebControlsSection.cs
- Set.cs
- TextViewBase.cs
- MdiWindowListItemConverter.cs
- CloudCollection.cs
- WorkflowInstanceRecord.cs
- Win32Exception.cs
- SerializationException.cs
- ValidatingReaderNodeData.cs
- ObjectQuery_EntitySqlExtensions.cs
- ActivityStateQuery.cs
- ContractMapping.cs
- ConfigurationSchemaErrors.cs
- ConnectionManagementElementCollection.cs
- GeneralTransform2DTo3D.cs
- SQLDecimalStorage.cs
- LogWriteRestartAreaState.cs
- ExtensibleClassFactory.cs
- TableParaClient.cs
- XmlParserContext.cs
- DrawingBrush.cs
- HtmlTableRow.cs
- SiteMapDataSourceView.cs
- LinqDataSourceView.cs
- QueryResponse.cs
- RegexMatch.cs
- CacheSection.cs
- TextServicesDisplayAttribute.cs
- SecurityDescriptor.cs
- __Error.cs
- ObjectItemLoadingSessionData.cs
- XmlHierarchicalEnumerable.cs
- TimelineGroup.cs
- FunctionImportMapping.ReturnTypeRenameMapping.cs
- nulltextnavigator.cs
- BrowsableAttribute.cs
- FamilyMap.cs
- TextServicesPropertyRanges.cs
- XmlIlTypeHelper.cs
- PropertyToken.cs
- KoreanCalendar.cs
- ColorAnimationUsingKeyFrames.cs
- IPCCacheManager.cs
- VerticalAlignConverter.cs
- ClientFormsIdentity.cs
- AVElementHelper.cs
- FontWeights.cs
- RootBuilder.cs
- DataGridViewCell.cs
- LinqToSqlWrapper.cs
- ConfigurationSectionHelper.cs
- LongSumAggregationOperator.cs
- ShutDownListener.cs
- Interlocked.cs
- XmlDataSourceNodeDescriptor.cs
- StoragePropertyMapping.cs
- DmlSqlGenerator.cs
- SendMailErrorEventArgs.cs
- CodeDomConfigurationHandler.cs
- GetFileNameResult.cs
- DeclaredTypeElementCollection.cs
- ConfigurationFileMap.cs
- SecUtil.cs
- CompilationUnit.cs
- DesignerDataSourceView.cs
- LinqDataSourceDeleteEventArgs.cs
- XmlC14NWriter.cs
- ProfileBuildProvider.cs
- RegexFCD.cs
- XhtmlBasicTextViewAdapter.cs
- ConcurrentBag.cs
- EmptyEnumerable.cs
- AssemblyResolver.cs
- RegexGroup.cs
- HighlightVisual.cs
- EditBehavior.cs
- DataGridViewEditingControlShowingEventArgs.cs
- PartitionResolver.cs
- DataPagerFieldCollection.cs
- WebConfigurationManager.cs
- DelegatingHeader.cs
- EventEntry.cs
- HandlerBase.cs
- MultiDataTrigger.cs
- ToolBarButtonClickEvent.cs
- HtmlSelect.cs
- ImageDrawing.cs
- DecimalStorage.cs
- DbExpressionRules.cs
- InvalidDataException.cs