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
- SR.cs
- XmlIgnoreAttribute.cs
- XmlNodeReader.cs
- PersonalizationProviderCollection.cs
- StrokeRenderer.cs
- FormsAuthenticationModule.cs
- HttpClientChannel.cs
- Utils.cs
- ToolStripProfessionalLowResolutionRenderer.cs
- SerialReceived.cs
- FrameDimension.cs
- AnimationClock.cs
- AutomationElementCollection.cs
- ListViewEditEventArgs.cs
- TextDpi.cs
- CompatibleIComparer.cs
- DefaultParameterValueAttribute.cs
- Calendar.cs
- DataGridRowHeaderAutomationPeer.cs
- Parameter.cs
- PackageRelationship.cs
- WebHttpBehavior.cs
- AnnotationStore.cs
- FileDataSourceCache.cs
- NamespaceInfo.cs
- XmlEventCache.cs
- WindowsListViewSubItem.cs
- Accessors.cs
- Socket.cs
- CompressionTransform.cs
- FormsAuthenticationModule.cs
- TypeValidationEventArgs.cs
- parserscommon.cs
- ValidationRuleCollection.cs
- Cursors.cs
- OutputCacheProfile.cs
- ToolStripDropDownItem.cs
- Tablet.cs
- SwitchCase.cs
- HtmlString.cs
- SpecularMaterial.cs
- JpegBitmapEncoder.cs
- MatrixTransform.cs
- GlobalEventManager.cs
- AliasedSlot.cs
- NGCPageContentCollectionSerializerAsync.cs
- Win32Native.cs
- LostFocusEventManager.cs
- HttpCacheParams.cs
- CacheOutputQuery.cs
- Compiler.cs
- LinearGradientBrush.cs
- TabControlCancelEvent.cs
- Attributes.cs
- ResourcesBuildProvider.cs
- IEnumerable.cs
- Brush.cs
- PolicyConversionContext.cs
- XmlSchemaSimpleContent.cs
- HitTestParameters.cs
- AutoResetEvent.cs
- DataSourceCollectionBase.cs
- PenThread.cs
- VirtualDirectoryMapping.cs
- ControlValuePropertyAttribute.cs
- CqlGenerator.cs
- ColorAnimationUsingKeyFrames.cs
- Base64Stream.cs
- TableCell.cs
- SemanticResultValue.cs
- SiteMapProvider.cs
- LockCookie.cs
- GregorianCalendarHelper.cs
- ActionItem.cs
- ProjectedWrapper.cs
- COAUTHINFO.cs
- UpdateManifestForBrowserApplication.cs
- ConnectionsZone.cs
- SQLDecimalStorage.cs
- BinaryUtilClasses.cs
- WebPartConnectionsEventArgs.cs
- QueryParameter.cs
- Unit.cs
- PrefixQName.cs
- ParameterModifier.cs
- Figure.cs
- ApplicationProxyInternal.cs
- DataSourceControlBuilder.cs
- XmlSchemaElement.cs
- NavigationWindowAutomationPeer.cs
- ListViewItemMouseHoverEvent.cs
- BaseValidator.cs
- DependencyProperty.cs
- XmlDesignerDataSourceView.cs
- XamlSerializerUtil.cs
- __ConsoleStream.cs
- Triangle.cs
- DataGridViewCellStateChangedEventArgs.cs
- BamlBinaryWriter.cs
- SqlDataSourceCommandParser.cs