Code:
/ DotNET / DotNET / 8.0 / untmp / whidbey / REDBITS / 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); } } }Removes a specific ///from the /// .
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- Style.cs
- TemplatedMailWebEventProvider.cs
- AlternateViewCollection.cs
- LoaderAllocator.cs
- MethodCallConverter.cs
- ProfileParameter.cs
- DataTableClearEvent.cs
- TraceSection.cs
- TextRangeEditTables.cs
- ToolStripPanelDesigner.cs
- X509WindowsSecurityToken.cs
- AsyncPostBackTrigger.cs
- Aggregates.cs
- Schema.cs
- ExclusiveTcpListener.cs
- FileSystemInfo.cs
- XhtmlConformanceSection.cs
- StorageEntitySetMapping.cs
- RegularExpressionValidator.cs
- EmissiveMaterial.cs
- SqlMultiplexer.cs
- ApplicationSecurityInfo.cs
- XmlDocumentFragment.cs
- ArgumentNullException.cs
- ControlPaint.cs
- ZeroOpNode.cs
- LinqToSqlWrapper.cs
- SqlCrossApplyToCrossJoin.cs
- TemplateControlCodeDomTreeGenerator.cs
- BufferedGraphicsContext.cs
- Verify.cs
- BeginStoryboard.cs
- TemplateParser.cs
- WinEventTracker.cs
- ContentFilePart.cs
- ToolBarButton.cs
- QilXmlReader.cs
- NCryptSafeHandles.cs
- odbcmetadatafactory.cs
- Model3D.cs
- SafeLibraryHandle.cs
- RealizedColumnsBlock.cs
- ExtenderProvidedPropertyAttribute.cs
- Rotation3DAnimationUsingKeyFrames.cs
- LayoutTable.cs
- HttpValueCollection.cs
- Comparer.cs
- LinkUtilities.cs
- ProfileParameter.cs
- SessionPageStateSection.cs
- ObjectContext.cs
- StyleXamlParser.cs
- SHA1CryptoServiceProvider.cs
- AlignmentYValidation.cs
- EditorZoneAutoFormat.cs
- CorrelationToken.cs
- EntityConnectionStringBuilderItem.cs
- TextLine.cs
- Function.cs
- MobileUserControlDesigner.cs
- XamlVector3DCollectionSerializer.cs
- Blend.cs
- ConfigXmlAttribute.cs
- MouseEvent.cs
- SqlConnectionHelper.cs
- RegexCharClass.cs
- SoapAttributeAttribute.cs
- GridViewHeaderRowPresenter.cs
- ComPlusContractBehavior.cs
- Enum.cs
- TimeSpanConverter.cs
- UnsettableComboBox.cs
- StaticTextPointer.cs
- safePerfProviderHandle.cs
- ListManagerBindingsCollection.cs
- ChildTable.cs
- RequestCacheManager.cs
- EntityConnection.cs
- RadioButtonRenderer.cs
- HuffmanTree.cs
- RuntimeCompatibilityAttribute.cs
- ContainerSelectorBehavior.cs
- FreeFormDragDropManager.cs
- PersonalizationStateInfoCollection.cs
- TypographyProperties.cs
- ProcessModule.cs
- CapabilitiesAssignment.cs
- CodeMemberProperty.cs
- FormatPage.cs
- MdiWindowListItemConverter.cs
- FtpWebRequest.cs
- OutputCacheSection.cs
- InputReferenceExpression.cs
- SerTrace.cs
- UnsafeNativeMethodsCLR.cs
- PageCodeDomTreeGenerator.cs
- DomainUpDown.cs
- BamlBinaryWriter.cs
- AcceptorSessionSymmetricTransportSecurityProtocol.cs
- InfoCardKeyedHashAlgorithm.cs