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
- DataProtection.cs
- PasswordDeriveBytes.cs
- StrongNameMembershipCondition.cs
- RecommendedAsConfigurableAttribute.cs
- DispatcherProcessingDisabled.cs
- StylusPointPropertyUnit.cs
- VBCodeProvider.cs
- GroupBox.cs
- MarginCollapsingState.cs
- QuarticEase.cs
- Page.cs
- ExecutionContext.cs
- BuildProvider.cs
- AsyncCallback.cs
- UInt32Storage.cs
- RemoteWebConfigurationHostServer.cs
- PersistencePipeline.cs
- Int16KeyFrameCollection.cs
- DataListComponentEditor.cs
- DataColumnChangeEvent.cs
- InkCanvasAutomationPeer.cs
- SqlClientFactory.cs
- RegistryConfigurationProvider.cs
- ListMarkerSourceInfo.cs
- StringUtil.cs
- Deserializer.cs
- PropertyRecord.cs
- ProfileService.cs
- ProfileProvider.cs
- MissingMemberException.cs
- EntityDataSourceDataSelection.cs
- XpsDigitalSignature.cs
- RuleEngine.cs
- XPathNodeList.cs
- TagNameToTypeMapper.cs
- SafeIUnknown.cs
- SafePipeHandle.cs
- TypeConverterHelper.cs
- MasterPageBuildProvider.cs
- MappableObjectManager.cs
- DefaultIfEmptyQueryOperator.cs
- ImmutableAssemblyCacheEntry.cs
- LinqDataSourceInsertEventArgs.cs
- SqlDataSourceCache.cs
- DrawingAttributes.cs
- StateFinalizationDesigner.cs
- mda.cs
- IisTraceListener.cs
- TypeEnumerableViewSchema.cs
- DiscreteKeyFrames.cs
- ExclusiveHandleList.cs
- EndpointDiscoveryElement.cs
- Thumb.cs
- TimeSpan.cs
- ForwardPositionQuery.cs
- CapabilitiesSection.cs
- StylusShape.cs
- ContentFilePart.cs
- DataPagerFieldItem.cs
- IsolatedStorageFilePermission.cs
- XmlCharType.cs
- InputLangChangeRequestEvent.cs
- TypeReference.cs
- EnumType.cs
- DrawingServices.cs
- AnimationLayer.cs
- ServiceMoniker.cs
- HtmlSelect.cs
- TemplateDefinition.cs
- CompatibleIComparer.cs
- ToolStripSplitButton.cs
- QueryableDataSourceEditData.cs
- XmlUtf8RawTextWriter.cs
- OutArgument.cs
- SpeechRecognizer.cs
- MinMaxParagraphWidth.cs
- MD5.cs
- oledbmetadatacollectionnames.cs
- DllHostInitializer.cs
- SiteMapNodeItem.cs
- UnsignedPublishLicense.cs
- DBParameter.cs
- BitmapPalettes.cs
- LoadedOrUnloadedOperation.cs
- MimeObjectFactory.cs
- ApplicationSettingsBase.cs
- ComponentEvent.cs
- StylusPointPropertyId.cs
- SettingsPropertyNotFoundException.cs
- Validator.cs
- Keyboard.cs
- ResXResourceSet.cs
- SharedStream.cs
- EdmSchemaAttribute.cs
- GlyphCache.cs
- TypeConverterHelper.cs
- PolyQuadraticBezierSegment.cs
- nulltextnavigator.cs
- FrameAutomationPeer.cs
- InputReferenceExpression.cs