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
- RtfToXamlReader.cs
- Deserializer.cs
- AccessText.cs
- EntityContainerAssociationSet.cs
- ScriptComponentDescriptor.cs
- ItemsControl.cs
- GeometryCombineModeValidation.cs
- AccessorTable.cs
- TextServicesHost.cs
- PropertyTabAttribute.cs
- BasicAsyncResult.cs
- CopyAction.cs
- ExpressionConverter.cs
- Helper.cs
- XhtmlBasicValidationSummaryAdapter.cs
- DataBindingExpressionBuilder.cs
- DrawingCollection.cs
- UrlAuthFailedErrorFormatter.cs
- RectIndependentAnimationStorage.cs
- DesignTimeParseData.cs
- XmlReaderSettings.cs
- TableDetailsCollection.cs
- XmlUrlResolver.cs
- DataGridViewUtilities.cs
- Rfc2898DeriveBytes.cs
- ProcessHostServerConfig.cs
- WsatAdminException.cs
- CodePageUtils.cs
- WebPartsPersonalization.cs
- Util.cs
- SiblingIterators.cs
- iisPickupDirectory.cs
- SBCSCodePageEncoding.cs
- _NegoStream.cs
- EntityObject.cs
- TextTreeInsertUndoUnit.cs
- BuildProvider.cs
- RowSpanVector.cs
- DefaultValidator.cs
- EventPropertyMap.cs
- SaveFileDialog.cs
- Rotation3D.cs
- Int32KeyFrameCollection.cs
- UpdatePanelTrigger.cs
- ColumnHeaderConverter.cs
- SizeAnimationBase.cs
- ListViewDeletedEventArgs.cs
- EventData.cs
- MetadataUtil.cs
- ZipIOLocalFileDataDescriptor.cs
- TextPointerBase.cs
- ProvidePropertyAttribute.cs
- RegionInfo.cs
- HtmlValidatorAdapter.cs
- XmlDataLoader.cs
- ITextView.cs
- BaseValidator.cs
- WebPermission.cs
- Calendar.cs
- FactoryRecord.cs
- FileEnumerator.cs
- RangeValuePattern.cs
- FullTextBreakpoint.cs
- SupportsEventValidationAttribute.cs
- BindingMAnagerBase.cs
- ProxyHelper.cs
- TimeStampChecker.cs
- WindowsSpinner.cs
- URLAttribute.cs
- SaveFileDialog.cs
- ArglessEventHandlerProxy.cs
- CompiledQueryCacheKey.cs
- ProfilePropertySettingsCollection.cs
- CodeVariableReferenceExpression.cs
- WpfPayload.cs
- XmlArrayItemAttribute.cs
- XmlResolver.cs
- ScopeCompiler.cs
- NetworkInformationPermission.cs
- LockedActivityGlyph.cs
- DataTemplate.cs
- FocusTracker.cs
- _NetRes.cs
- ComponentResourceKeyConverter.cs
- PathFigureCollectionConverter.cs
- NetTcpSectionData.cs
- PrintDialogException.cs
- QueryableFilterUserControl.cs
- EncodingTable.cs
- CachedPathData.cs
- SecurityKeyUsage.cs
- x509utils.cs
- PrintPreviewControl.cs
- UInt16.cs
- GlyphElement.cs
- PageVisual.cs
- EntityDataSourceMemberPath.cs
- GridViewSelectEventArgs.cs
- TextSchema.cs
- GeometryDrawing.cs