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
- SqlRetyper.cs
- ListBoxAutomationPeer.cs
- CachedPathData.cs
- CodeArrayIndexerExpression.cs
- ErrorFormatterPage.cs
- DesignerAdapterAttribute.cs
- SyntaxCheck.cs
- CountAggregationOperator.cs
- XmlArrayAttribute.cs
- MouseWheelEventArgs.cs
- WindowsFont.cs
- AttachedPropertyMethodSelector.cs
- WindowsAltTab.cs
- ContextMenuService.cs
- LabelAutomationPeer.cs
- OdbcCommand.cs
- DataGridViewBindingCompleteEventArgs.cs
- UnsafeNativeMethods.cs
- DispatchOperation.cs
- DataAccessor.cs
- ChildChangedEventArgs.cs
- DocumentScope.cs
- TablePatternIdentifiers.cs
- WebDescriptionAttribute.cs
- Bidi.cs
- PixelShader.cs
- TypeGenericEnumerableViewSchema.cs
- TreeBuilder.cs
- SingleAnimationBase.cs
- GetImportedCardRequest.cs
- AssemblyBuilder.cs
- AdapterUtil.cs
- TypeSource.cs
- MailAddressCollection.cs
- Parser.cs
- Cursors.cs
- Button.cs
- CodeNamespaceImport.cs
- TypeDescriptionProvider.cs
- MouseEventArgs.cs
- CultureMapper.cs
- DurableMessageDispatchInspector.cs
- MultiPropertyDescriptorGridEntry.cs
- OLEDB_Enum.cs
- ProtocolsConfigurationHandler.cs
- OdbcCommandBuilder.cs
- Variable.cs
- ICspAsymmetricAlgorithm.cs
- ColorTransform.cs
- SqlUtils.cs
- ToolStripDropDownItem.cs
- FormatSettings.cs
- TextElement.cs
- TabControlAutomationPeer.cs
- SQLInt16Storage.cs
- KeyFrames.cs
- UDPClient.cs
- AuthenticationConfig.cs
- DataRowChangeEvent.cs
- RecordManager.cs
- Identifier.cs
- MenuTracker.cs
- ToolStripContainer.cs
- SiteMembershipCondition.cs
- DesignerDataView.cs
- SmiEventStream.cs
- IconConverter.cs
- PaperSource.cs
- NumberFormatInfo.cs
- CatalogZoneBase.cs
- CodeLabeledStatement.cs
- RTTrackingProfile.cs
- WindowsMenu.cs
- _LocalDataStoreMgr.cs
- SchemaCollectionCompiler.cs
- BitmapEffectInput.cs
- AddressAccessDeniedException.cs
- MethodSignatureGenerator.cs
- ConfigurationStrings.cs
- StrongNameKeyPair.cs
- Vector.cs
- EasingKeyFrames.cs
- AsyncMethodInvoker.cs
- LogStore.cs
- App.cs
- XDRSchema.cs
- WebPartsPersonalizationAuthorization.cs
- TargetConverter.cs
- FieldBuilder.cs
- StreamWriter.cs
- XmlQueryCardinality.cs
- IgnoreDeviceFilterElement.cs
- DeploymentSection.cs
- DataGridItemEventArgs.cs
- _OverlappedAsyncResult.cs
- OdbcInfoMessageEvent.cs
- LineSegment.cs
- FacetValueContainer.cs
- BreakRecordTable.cs
- StringComparer.cs