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
- FormViewDeleteEventArgs.cs
- diagnosticsswitches.cs
- NgenServicingAttributes.cs
- DurationConverter.cs
- CustomDictionarySources.cs
- QueryOptionExpression.cs
- NativeMethods.cs
- ComponentEvent.cs
- ControlBuilder.cs
- columnmapkeybuilder.cs
- SafeFileHandle.cs
- VariableBinder.cs
- TraceLog.cs
- SqlServer2KCompatibilityCheck.cs
- Storyboard.cs
- TextProviderWrapper.cs
- DependencyPropertyConverter.cs
- StyleCollection.cs
- RowBinding.cs
- DockPatternIdentifiers.cs
- StateRuntime.cs
- WorkflowItemPresenter.cs
- ToolTipAutomationPeer.cs
- ResourcesGenerator.cs
- InputElement.cs
- Int16Storage.cs
- X509Certificate2Collection.cs
- Clause.cs
- SqlUtil.cs
- Permission.cs
- LayoutUtils.cs
- TypeExtensionSerializer.cs
- ComplusEndpointConfigContainer.cs
- GPRECTF.cs
- WindowsImpersonationContext.cs
- PointLight.cs
- ScalarConstant.cs
- PersonalizationState.cs
- DataGridViewCellStyleChangedEventArgs.cs
- HttpHeaderCollection.cs
- PeerChannelFactory.cs
- XamlFxTrace.cs
- SnapshotChangeTrackingStrategy.cs
- CellTreeNode.cs
- TemplatePropertyEntry.cs
- StringResourceManager.cs
- DirectoryNotFoundException.cs
- GPRECTF.cs
- EnumMember.cs
- MSHTMLHost.cs
- ConfigurationException.cs
- FunctionOverloadResolver.cs
- ResXResourceSet.cs
- PageBuildProvider.cs
- ToolStripItemEventArgs.cs
- FieldBuilder.cs
- TypeDescriptionProviderAttribute.cs
- COM2Enum.cs
- FigureParaClient.cs
- DataGridViewColumnDesigner.cs
- ThreadPool.cs
- RenderingBiasValidation.cs
- MeshGeometry3D.cs
- FilteredAttributeCollection.cs
- HttpGetServerProtocol.cs
- SingleConverter.cs
- PerformanceCounters.cs
- ToolStripContainer.cs
- _ConnectOverlappedAsyncResult.cs
- ButtonColumn.cs
- ComMethodElement.cs
- StyleXamlTreeBuilder.cs
- Scene3D.cs
- SpeakInfo.cs
- PtsHelper.cs
- RuleSetReference.cs
- RC2.cs
- ACL.cs
- XLinq.cs
- DataGridAddNewRow.cs
- CryptoProvider.cs
- printdlgexmarshaler.cs
- GridViewAutomationPeer.cs
- HierarchicalDataBoundControl.cs
- Completion.cs
- CodeTypeReferenceCollection.cs
- TemplatedWizardStep.cs
- ComponentCommands.cs
- WebPartEditorOkVerb.cs
- InternalCache.cs
- ByteViewer.cs
- ClassGenerator.cs
- UserPersonalizationStateInfo.cs
- BasicHttpSecurity.cs
- MenuItem.cs
- FilterableAttribute.cs
- Variable.cs
- DPCustomTypeDescriptor.cs
- ToolStripPanelRow.cs
- PrimitiveSchema.cs