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
- ContainsRowNumberChecker.cs
- HMACMD5.cs
- HttpTransportBindingElement.cs
- XmlWrappingReader.cs
- WsatConfiguration.cs
- WorkflowQueueInfo.cs
- HttpWebRequestElement.cs
- OverflowException.cs
- WindowsMenu.cs
- SRef.cs
- RemotingConfigParser.cs
- HtmlShim.cs
- AmbientLight.cs
- Comparer.cs
- ZipIOCentralDirectoryBlock.cs
- CollectionViewGroupRoot.cs
- TraceHwndHost.cs
- IdnElement.cs
- ScriptingRoleServiceSection.cs
- EntityModelSchemaGenerator.cs
- WindowsIdentity.cs
- ThreadSafeList.cs
- ListItem.cs
- ParseNumbers.cs
- AnnotationMap.cs
- ToolStripMenuItem.cs
- ConfigurationElementProperty.cs
- DataException.cs
- StaticTextPointer.cs
- KnownTypes.cs
- DesignerUtils.cs
- SecurityTokenReferenceStyle.cs
- SmtpException.cs
- PerspectiveCamera.cs
- SqlDataSourceCommandEventArgs.cs
- unsafenativemethodsother.cs
- GeometryGroup.cs
- CommandLineParser.cs
- ListViewItemEventArgs.cs
- Vector.cs
- SoapIncludeAttribute.cs
- CodeTypeParameter.cs
- TableStyle.cs
- ConfigXmlWhitespace.cs
- SchemaRegistration.cs
- ToolStripDesigner.cs
- ScriptModule.cs
- Brush.cs
- DataGridCommandEventArgs.cs
- FixedHighlight.cs
- HMACSHA384.cs
- WebBrowserNavigatingEventHandler.cs
- RtType.cs
- DataGridViewCheckBoxCell.cs
- XamlContextStack.cs
- DBCSCodePageEncoding.cs
- RuleRef.cs
- ConstraintCollection.cs
- InterleavedZipPartStream.cs
- SemanticKeyElement.cs
- SettingsBase.cs
- SequenceQuery.cs
- RuntimeVariablesExpression.cs
- AssociationSetEnd.cs
- TextRunProperties.cs
- ComplusEndpointConfigContainer.cs
- _ConnectStream.cs
- SchemaImporterExtension.cs
- DataGridViewComboBoxEditingControl.cs
- OrderByQueryOptionExpression.cs
- DeferredSelectedIndexReference.cs
- ContentPlaceHolder.cs
- HostExecutionContextManager.cs
- EncoderNLS.cs
- XamlTypeMapper.cs
- TeredoHelper.cs
- ByteConverter.cs
- HttpPostProtocolImporter.cs
- StartUpEventArgs.cs
- TextFindEngine.cs
- SqlBuffer.cs
- InputMethodStateTypeInfo.cs
- Logging.cs
- CategoriesDocument.cs
- BulletChrome.cs
- ContextMenuAutomationPeer.cs
- TreeNode.cs
- UserControlParser.cs
- ChildrenQuery.cs
- SequentialOutput.cs
- MappingMetadataHelper.cs
- InstanceNotReadyException.cs
- DataSourceUtil.cs
- PeerCredentialElement.cs
- RelationshipDetailsCollection.cs
- Walker.cs
- CompositeScriptReference.cs
- TemplatedMailWebEventProvider.cs
- Point3D.cs
- SymbolUsageManager.cs