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
- WebPartUtil.cs
- GenerateTemporaryTargetAssembly.cs
- LinkDesigner.cs
- IISMapPath.cs
- ApplicationProxyInternal.cs
- VScrollBar.cs
- DoubleLinkList.cs
- While.cs
- SQLChars.cs
- PersonalizationProvider.cs
- SubclassTypeValidator.cs
- EndpointDesigner.cs
- SQLInt32.cs
- GridViewRowEventArgs.cs
- Main.cs
- CodeRegionDirective.cs
- AutomationElementCollection.cs
- SupportsEventValidationAttribute.cs
- ExpressionEditor.cs
- NavigationWindow.cs
- SmtpNegotiateAuthenticationModule.cs
- counter.cs
- TextRangeEditLists.cs
- BindingOperations.cs
- ListMarkerSourceInfo.cs
- FacetChecker.cs
- UnknownBitmapDecoder.cs
- SharedConnectionWorkflowTransactionService.cs
- StatementContext.cs
- JsonServiceDocumentSerializer.cs
- GridToolTip.cs
- FileEnumerator.cs
- ViewLoader.cs
- QilTernary.cs
- DataKeyArray.cs
- WCFBuildProvider.cs
- SyntaxCheck.cs
- DiscoveryClientChannelFactory.cs
- HyperLinkField.cs
- GB18030Encoding.cs
- ControlType.cs
- RegexNode.cs
- ThemeConfigurationDialog.cs
- SchemaLookupTable.cs
- remotingproxy.cs
- IndexOutOfRangeException.cs
- HotCommands.cs
- DataMemberAttribute.cs
- Point3DConverter.cs
- HttpHostedTransportConfiguration.cs
- CompensateDesigner.cs
- Overlapped.cs
- CalloutQueueItem.cs
- ListenerSingletonConnectionReader.cs
- ApplicationHost.cs
- ImageDrawing.cs
- DataMemberListEditor.cs
- Action.cs
- MediaSystem.cs
- ImageSource.cs
- ExpressionVisitor.cs
- UserPreferenceChangedEventArgs.cs
- SqlBuilder.cs
- ApplyImportsAction.cs
- NumberSubstitution.cs
- UnaryOperationBinder.cs
- OperationAbortedException.cs
- UpWmlMobileTextWriter.cs
- SpeechAudioFormatInfo.cs
- WindowsEditBoxRange.cs
- PeerCollaborationPermission.cs
- TagMapCollection.cs
- ConsumerConnectionPoint.cs
- InvalidCastException.cs
- Privilege.cs
- EditorPart.cs
- HashAlgorithm.cs
- DomainUpDown.cs
- XmlCharCheckingReader.cs
- QilTernary.cs
- DrawingServices.cs
- UIElement.cs
- RowToFieldTransformer.cs
- MonitorWrapper.cs
- KeyValuePairs.cs
- ActivitySurrogate.cs
- SystemPens.cs
- TextBox.cs
- UnsafeNativeMethodsTablet.cs
- TraceContext.cs
- SchemaNames.cs
- FlowchartSizeFeature.cs
- CopyAttributesAction.cs
- Listbox.cs
- PerformanceCounterCategory.cs
- XXXInfos.cs
- EditorPart.cs
- ParameterCollection.cs
- WebPartConnectionCollection.cs
- XmlNavigatorStack.cs