Code:
/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / ndp / fx / src / CompMod / System / CodeDOM / CodeTypeMemberCollection.cs / 1 / CodeTypeMemberCollection.cs
// ------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // // ----------------------------------------------------------------------------- // namespace System.CodeDom { using System; using System.Collections; using System.Runtime.InteropServices; ////// [ 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); } } }Removes a specific ///from the /// .
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- cookie.cs
- Lasso.cs
- SamlDoNotCacheCondition.cs
- TextRangeEdit.cs
- ExternalDataExchangeService.cs
- _SafeNetHandles.cs
- SkewTransform.cs
- ImmutableObjectAttribute.cs
- WebBrowserDesigner.cs
- HttpRuntimeSection.cs
- ExtensionQuery.cs
- AmbientLight.cs
- XhtmlConformanceSection.cs
- FlagsAttribute.cs
- SynthesizerStateChangedEventArgs.cs
- DatagridviewDisplayedBandsData.cs
- CheckBoxList.cs
- DCSafeHandle.cs
- CalendarItem.cs
- PrivateFontCollection.cs
- PixelFormatConverter.cs
- XComponentModel.cs
- DocumentSchemaValidator.cs
- CanonicalFormWriter.cs
- MultiPageTextView.cs
- NotImplementedException.cs
- TemplateControlCodeDomTreeGenerator.cs
- Bold.cs
- COM2ColorConverter.cs
- ItemsPresenter.cs
- BookmarkUndoUnit.cs
- SimpleType.cs
- CalendarDay.cs
- DecimalAnimation.cs
- UnSafeCharBuffer.cs
- TimeoutValidationAttribute.cs
- ShapingWorkspace.cs
- EntityParameter.cs
- Deserializer.cs
- ConstraintStruct.cs
- HeaderedContentControl.cs
- BitmapPalettes.cs
- EntityFunctions.cs
- XXXInfos.cs
- ParagraphVisual.cs
- DocumentEventArgs.cs
- NamespaceList.cs
- HtmlButton.cs
- SerializableAttribute.cs
- XmlNullResolver.cs
- ClaimTypeRequirement.cs
- UseLicense.cs
- Pair.cs
- DesignerObject.cs
- SmtpTransport.cs
- PointLightBase.cs
- ClientBuildManager.cs
- PathParser.cs
- EntityViewGenerationConstants.cs
- ByteAnimationUsingKeyFrames.cs
- XmlILStorageConverter.cs
- MailAddressParser.cs
- Splitter.cs
- DBNull.cs
- SourceSwitch.cs
- messageonlyhwndwrapper.cs
- Filter.cs
- initElementDictionary.cs
- HwndTarget.cs
- StrokeNodeData.cs
- ToolboxBitmapAttribute.cs
- IncrementalReadDecoders.cs
- ObjectAssociationEndMapping.cs
- ModifiableIteratorCollection.cs
- Debugger.cs
- PrintControllerWithStatusDialog.cs
- ProtocolInformationWriter.cs
- DataGridViewCheckBoxColumn.cs
- SizeChangedEventArgs.cs
- X509Chain.cs
- TemplateBuilder.cs
- StateMachine.cs
- InlineObject.cs
- TaskSchedulerException.cs
- WindowClosedEventArgs.cs
- SuppressIldasmAttribute.cs
- HttpContextBase.cs
- SystemMulticastIPAddressInformation.cs
- filewebrequest.cs
- XmlToDatasetMap.cs
- WindowsImpersonationContext.cs
- CurrentChangingEventArgs.cs
- QualifiedId.cs
- SslStream.cs
- ProfileModule.cs
- CreateInstanceBinder.cs
- EncodingTable.cs
- PackageRelationship.cs
- CultureData.cs
- SweepDirectionValidation.cs