Code:
/ FX-1434 / FX-1434 / 1.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
- CodeEntryPointMethod.cs
- Control.cs
- Compiler.cs
- ValidationError.cs
- basecomparevalidator.cs
- MDIWindowDialog.cs
- Ticks.cs
- KeyManager.cs
- mda.cs
- HandlerMappingMemo.cs
- WebPartDescriptionCollection.cs
- SoapFormatter.cs
- followingsibling.cs
- CompatibleIComparer.cs
- Transaction.cs
- PublisherMembershipCondition.cs
- DbDataReader.cs
- PriorityQueue.cs
- Point3DKeyFrameCollection.cs
- NameHandler.cs
- UDPClient.cs
- XPathCompileException.cs
- DeploymentExceptionMapper.cs
- SessionSwitchEventArgs.cs
- ProcessModule.cs
- sqlmetadatafactory.cs
- SafeRegistryHandle.cs
- DependencyPropertyKind.cs
- BufferedReadStream.cs
- DateTimeFormatInfoScanner.cs
- ListBase.cs
- CultureSpecificCharacterBufferRange.cs
- Vector3dCollection.cs
- TypeTypeConverter.cs
- CatalogPart.cs
- ExpressionBinding.cs
- ApplicationFileParser.cs
- ComboBoxItem.cs
- Debugger.cs
- IsolatedStorageFile.cs
- ImageMap.cs
- AdapterUtil.cs
- MethodAccessException.cs
- StylusPointDescription.cs
- NamedPipeAppDomainProtocolHandler.cs
- TokenBasedSetEnumerator.cs
- PrincipalPermission.cs
- XmlLanguageConverter.cs
- DataContext.cs
- X509ChainPolicy.cs
- XsdDateTime.cs
- StylusPointProperty.cs
- X509ChainElement.cs
- Literal.cs
- ToolStripContentPanel.cs
- GrowingArray.cs
- DependencyPropertyDescriptor.cs
- ListBoxAutomationPeer.cs
- PropertyGroupDescription.cs
- XappLauncher.cs
- WorkflowServiceHost.cs
- CodeSnippetTypeMember.cs
- BreakRecordTable.cs
- FunctionImportMapping.cs
- Cursor.cs
- AutomationPropertyChangedEventArgs.cs
- ShaderEffect.cs
- GetWorkflowTree.cs
- SystemIPInterfaceStatistics.cs
- DataContractSet.cs
- Native.cs
- SparseMemoryStream.cs
- UnaryNode.cs
- OpenFileDialog.cs
- MatrixCamera.cs
- XmlFormatReaderGenerator.cs
- OrderedHashRepartitionEnumerator.cs
- ListViewItem.cs
- ConfigXmlAttribute.cs
- TreeNodeBinding.cs
- NumericPagerField.cs
- BreakRecordTable.cs
- ClientUIRequest.cs
- DataObjectEventArgs.cs
- ListViewTableRow.cs
- AudioFormatConverter.cs
- PropertyGroupDescription.cs
- AutomationPattern.cs
- XmlNamespaceMappingCollection.cs
- ContainerActivationHelper.cs
- StorageInfo.cs
- PerfService.cs
- ColorConverter.cs
- PerspectiveCamera.cs
- PeerResolver.cs
- _NestedMultipleAsyncResult.cs
- ScaleTransform3D.cs
- XmlSchemaSimpleContent.cs
- DataGridItemCollection.cs
- ActiveXMessageFormatter.cs