Code:
/ 4.0 / 4.0 / 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 /// . // // // ----------------------------------------------------------------------------- // 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
- BindingContext.cs
- FileCodeGroup.cs
- StreamGeometry.cs
- SystemFonts.cs
- WebPartCollection.cs
- DataGridColumnHeadersPresenter.cs
- MouseCaptureWithinProperty.cs
- Highlights.cs
- TemplateColumn.cs
- UrlAuthorizationModule.cs
- RepeaterCommandEventArgs.cs
- AddInAttribute.cs
- WebConfigurationHostFileChange.cs
- GroupQuery.cs
- WebPartPersonalization.cs
- BitmapPalettes.cs
- SqlUdtInfo.cs
- SecurityTokenResolver.cs
- DataBoundControlActionList.cs
- CodeValidator.cs
- SerializationEventsCache.cs
- PresentationSource.cs
- AnnotationResource.cs
- ColumnTypeConverter.cs
- WindowsPen.cs
- EntityCommandExecutionException.cs
- XamlNamespaceHelper.cs
- ManagementNamedValueCollection.cs
- Helpers.cs
- MetadataCache.cs
- SessionIDManager.cs
- DocumentPage.cs
- SyndicationItem.cs
- AutomationIdentifier.cs
- ChannelServices.cs
- LocalValueEnumerator.cs
- DescendantBaseQuery.cs
- CheckedListBox.cs
- EnumerableRowCollection.cs
- DynamicILGenerator.cs
- DataObjectEventArgs.cs
- DBCommandBuilder.cs
- SerializableAuthorizationContext.cs
- CrossAppDomainChannel.cs
- DesignTimeParseData.cs
- DataGridViewLinkColumn.cs
- HitTestWithPointDrawingContextWalker.cs
- MetafileHeader.cs
- XmlSchemaObjectTable.cs
- DataBoundControlAdapter.cs
- ISCIIEncoding.cs
- XmlBinaryReader.cs
- FixUp.cs
- ViewStateException.cs
- TraceEventCache.cs
- CalendarData.cs
- NetCodeGroup.cs
- OdbcParameter.cs
- UdpTransportSettings.cs
- TraceFilter.cs
- LOSFormatter.cs
- ActivityCodeDomSerializer.cs
- GeometryDrawing.cs
- PasswordTextContainer.cs
- IPHostEntry.cs
- WindowsScrollBar.cs
- UInt32.cs
- DataGridColumnHeadersPresenter.cs
- DecoderFallback.cs
- HtmlTextViewAdapter.cs
- FileLogRecordStream.cs
- Crc32.cs
- CheckableControlBaseAdapter.cs
- PointAnimationUsingKeyFrames.cs
- Imaging.cs
- ClientUrlResolverWrapper.cs
- SQLInt64Storage.cs
- XmlQualifiedName.cs
- XmlSecureResolver.cs
- FileDataSourceCache.cs
- SessionStateSection.cs
- ControlPaint.cs
- RequestTimeoutManager.cs
- LeafCellTreeNode.cs
- HtmlHead.cs
- DataGridViewRowCancelEventArgs.cs
- TracingConnectionInitiator.cs
- BindingWorker.cs
- SortedList.cs
- Span.cs
- MembershipSection.cs
- TextServicesPropertyRanges.cs
- OdbcUtils.cs
- TraceHandler.cs
- Function.cs
- WsiProfilesElement.cs
- PointAnimationUsingKeyFrames.cs
- _NegoState.cs
- IncrementalHitTester.cs
- AttachedPropertyBrowsableAttribute.cs