Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / CompMod / System / CodeDOM / CodeTypeMemberCollection.cs / 1305376 / CodeTypeMemberCollection.cs
// ------------------------------------------------------------------------------ //// // // ----------------------------------------------------------------------------- // namespace System.CodeDom { using System; using System.Collections; using System.Runtime.InteropServices; ///[....] // Copyright (c) Microsoft Corporation. All rights reserved. ///// [ 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); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007.Removes a specific ///from the /// .
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- SuppressIldasmAttribute.cs
- PasswordDeriveBytes.cs
- ViewBox.cs
- XsltArgumentList.cs
- Size.cs
- EditorZone.cs
- IsolatedStorageFilePermission.cs
- GridViewColumnCollectionChangedEventArgs.cs
- PolicyDesigner.cs
- SimpleWebHandlerParser.cs
- DiagnosticTraceSource.cs
- _BaseOverlappedAsyncResult.cs
- ActivityCodeDomReferenceService.cs
- Helper.cs
- ProvidersHelper.cs
- RectAnimation.cs
- TransformedBitmap.cs
- Geometry.cs
- WinCategoryAttribute.cs
- PartialList.cs
- XmlEncoding.cs
- SafeNativeMethods.cs
- StylusButtonCollection.cs
- RunWorkerCompletedEventArgs.cs
- NetSectionGroup.cs
- EntityKey.cs
- Size3D.cs
- EventPrivateKey.cs
- SoapTypeAttribute.cs
- HtmlObjectListAdapter.cs
- TrackingStringDictionary.cs
- TemplateControl.cs
- PanelDesigner.cs
- CatalogZone.cs
- SearchExpression.cs
- CharacterBuffer.cs
- Win32Native.cs
- ListBox.cs
- ProcessThreadCollection.cs
- DesignerHost.cs
- CaseInsensitiveComparer.cs
- ListControl.cs
- ConfigurationPermission.cs
- CompilationSection.cs
- XpsSerializerFactory.cs
- TabPageDesigner.cs
- Function.cs
- SqlGenericUtil.cs
- _NetworkingPerfCounters.cs
- XmlBinaryReader.cs
- ListParaClient.cs
- CommentEmitter.cs
- SoapMessage.cs
- NamedPipeTransportBindingElement.cs
- WsatConfiguration.cs
- WindowsFormsSynchronizationContext.cs
- ColorTransform.cs
- AggregateNode.cs
- ManifestResourceInfo.cs
- ZipIOEndOfCentralDirectoryBlock.cs
- StringValueSerializer.cs
- WmlTextViewAdapter.cs
- XamlInt32CollectionSerializer.cs
- PasswordDeriveBytes.cs
- SystemEvents.cs
- CreationContext.cs
- ReadWriteObjectLock.cs
- ApplicationException.cs
- OptimalBreakSession.cs
- ValueSerializer.cs
- OdbcConnectionStringbuilder.cs
- SqlInternalConnectionSmi.cs
- XamlPathDataSerializer.cs
- LoginName.cs
- WebPartUtil.cs
- HyperLink.cs
- BlurEffect.cs
- AbstractSvcMapFileLoader.cs
- BitmapEffectGroup.cs
- DocumentApplicationDocumentViewer.cs
- BitmapCodecInfo.cs
- DbConnectionPoolOptions.cs
- PolicyDesigner.cs
- DataGridViewAutoSizeColumnsModeEventArgs.cs
- Splitter.cs
- ClockGroup.cs
- CodeAccessSecurityEngine.cs
- SQLSingleStorage.cs
- SerialPinChanges.cs
- DataGridViewButtonColumn.cs
- PatternMatcher.cs
- PeerCollaboration.cs
- TreeViewImageIndexConverter.cs
- XmlLanguage.cs
- XmlSequenceWriter.cs
- TextShapeableCharacters.cs
- SmtpFailedRecipientException.cs
- ParentQuery.cs
- ImageFormat.cs
- SimpleApplicationHost.cs