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
- Ipv6Element.cs
- MsmqVerifier.cs
- AssemblyInfo.cs
- Span.cs
- _TransmitFileOverlappedAsyncResult.cs
- PropertyValidationContext.cs
- MULTI_QI.cs
- Pkcs9Attribute.cs
- TextParagraphView.cs
- CurrencyWrapper.cs
- BindingsCollection.cs
- HttpApplicationFactory.cs
- Function.cs
- EmptyStringExpandableObjectConverter.cs
- QuerySettings.cs
- AdapterDictionary.cs
- LayoutEngine.cs
- WrapPanel.cs
- OdbcError.cs
- ActivityDesigner.cs
- XmlSchemaImport.cs
- CheckBoxAutomationPeer.cs
- TokenCreationParameter.cs
- SecurityState.cs
- TileModeValidation.cs
- ReflectPropertyDescriptor.cs
- DataControlField.cs
- FunctionMappingTranslator.cs
- GeometryConverter.cs
- EndpointDiscoveryMetadataCD1.cs
- DrawingVisualDrawingContext.cs
- SerializationInfoEnumerator.cs
- ToolboxDataAttribute.cs
- QueryCursorEventArgs.cs
- ApplicationTrust.cs
- rsa.cs
- Set.cs
- SqlLiftIndependentRowExpressions.cs
- PointAnimationBase.cs
- SoapMessage.cs
- DataGridTextBoxColumn.cs
- SamlAssertion.cs
- HandlerBase.cs
- XmlSchemaAnnotated.cs
- ObjectContext.cs
- PageContentAsyncResult.cs
- BinaryUtilClasses.cs
- CmsInterop.cs
- TdsEnums.cs
- __FastResourceComparer.cs
- MetadataPropertyvalue.cs
- Triangle.cs
- CfgRule.cs
- NameScopePropertyAttribute.cs
- Message.cs
- DataGridViewControlCollection.cs
- InvalidStoreProtectionKeyException.cs
- _UriSyntax.cs
- Guid.cs
- DataServices.cs
- ProbeRequestResponseAsyncResult.cs
- ExponentialEase.cs
- SmtpMail.cs
- Panel.cs
- MatrixValueSerializer.cs
- TextPattern.cs
- StartFileNameEditor.cs
- RegexTree.cs
- DataGridViewColumnHeaderCell.cs
- ReadonlyMessageFilter.cs
- Vector3DConverter.cs
- OdbcHandle.cs
- RSAPKCS1SignatureDeformatter.cs
- MarkupProperty.cs
- DetailsViewRow.cs
- ToolStripOverflowButton.cs
- SqlDelegatedTransaction.cs
- CqlErrorHelper.cs
- DataGridViewControlCollection.cs
- ResourceReferenceExpressionConverter.cs
- ContentValidator.cs
- TreeBuilderBamlTranslator.cs
- CodeExporter.cs
- DataGridViewButtonColumn.cs
- NameValueSectionHandler.cs
- CompilationPass2TaskInternal.cs
- StringFormat.cs
- DoubleUtil.cs
- EqualityComparer.cs
- ColorConvertedBitmapExtension.cs
- ExecutionEngineException.cs
- FixedFlowMap.cs
- UInt32Converter.cs
- Lasso.cs
- GcSettings.cs
- _NegoState.cs
- MediaContext.cs
- MetaForeignKeyColumn.cs
- LassoHelper.cs
- ThemeInfoAttribute.cs