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
- ProxyWebPart.cs
- BoundColumn.cs
- CompositeDataBoundControl.cs
- MissingFieldException.cs
- LookupNode.cs
- EntityContainerEmitter.cs
- ReadWriteObjectLock.cs
- FontUnit.cs
- ContentOperations.cs
- BuildResult.cs
- LogReservationCollection.cs
- SqlCaseSimplifier.cs
- HttpException.cs
- XmlSchemaCompilationSettings.cs
- ScriptManagerProxy.cs
- PointLight.cs
- IProvider.cs
- AsymmetricKeyExchangeDeformatter.cs
- ToolStripDropDownClosedEventArgs.cs
- URLMembershipCondition.cs
- ResizeGrip.cs
- PropVariant.cs
- BindingCompleteEventArgs.cs
- DesignRelationCollection.cs
- Exceptions.cs
- IteratorFilter.cs
- ObjectStateFormatter.cs
- DisplayNameAttribute.cs
- GatewayIPAddressInformationCollection.cs
- Italic.cs
- BooleanStorage.cs
- MultiPageTextView.cs
- ThemeConfigurationDialog.cs
- AudioFormatConverter.cs
- BamlLocalizer.cs
- SvcMapFileSerializer.cs
- SqlClientMetaDataCollectionNames.cs
- UnsafePeerToPeerMethods.cs
- PreservationFileReader.cs
- ErrorWrapper.cs
- StringExpressionSet.cs
- WebPartZoneBase.cs
- InputLanguage.cs
- ByteRangeDownloader.cs
- HtmlGenericControl.cs
- UndoEngine.cs
- XmlDocumentType.cs
- TypeUtils.cs
- FlatButtonAppearance.cs
- TypeConverter.cs
- StringComparer.cs
- HttpCookiesSection.cs
- DelegatingConfigHost.cs
- ToggleButton.cs
- EnterpriseServicesHelper.cs
- StreamAsIStream.cs
- XmlSchemaComplexContentRestriction.cs
- Fx.cs
- DataSourceProvider.cs
- Odbc32.cs
- SkewTransform.cs
- AudioFormatConverter.cs
- RoleServiceManager.cs
- PlainXmlSerializer.cs
- Image.cs
- SqlCacheDependency.cs
- _SSPIWrapper.cs
- _TimerThread.cs
- SendMailErrorEventArgs.cs
- RemotingService.cs
- OdbcDataAdapter.cs
- GridItemProviderWrapper.cs
- ValidationError.cs
- QilExpression.cs
- TransactionTable.cs
- ErrorWrapper.cs
- CompositionTarget.cs
- DocumentSequence.cs
- SocketAddress.cs
- NumericUpDownAccelerationCollection.cs
- MemberPathMap.cs
- SqlMethodTransformer.cs
- SqlNamer.cs
- StandardBindingReliableSessionElement.cs
- DataGridViewCellPaintingEventArgs.cs
- PropertyItem.cs
- ContentAlignmentEditor.cs
- SimpleHandlerBuildProvider.cs
- RuntimeConfigLKG.cs
- SemanticTag.cs
- RoutedEventHandlerInfo.cs
- IISMapPath.cs
- OdbcParameterCollection.cs
- FragmentQueryProcessor.cs
- RelationshipNavigation.cs
- SelectiveScrollingGrid.cs
- UnsafeMethods.cs
- ServiceErrorHandler.cs
- Vars.cs
- SqlInternalConnectionTds.cs