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
- Rect3D.cs
- DataBoundLiteralControl.cs
- Axis.cs
- HostProtectionPermission.cs
- CapiSafeHandles.cs
- CriticalHandle.cs
- RepeatBehaviorConverter.cs
- BuildProvider.cs
- shaper.cs
- Boolean.cs
- WebPartActionVerb.cs
- Rect3DConverter.cs
- XmlDictionaryReaderQuotas.cs
- SmtpNetworkElement.cs
- TemplateControlBuildProvider.cs
- ClientTargetCollection.cs
- streamingZipPartStream.cs
- TypeDescriptor.cs
- DynamicDocumentPaginator.cs
- XmlSchemaSimpleContentExtension.cs
- TableCellAutomationPeer.cs
- StopStoryboard.cs
- StringSorter.cs
- FixedSOMTableCell.cs
- XslVisitor.cs
- WebBrowser.cs
- ToolStripAdornerWindowService.cs
- GridEntryCollection.cs
- StreamingContext.cs
- SpellerError.cs
- OleDbConnectionFactory.cs
- OdbcDataReader.cs
- BooleanStorage.cs
- QueryableDataSource.cs
- RadioButtonFlatAdapter.cs
- UrlAuthorizationModule.cs
- Walker.cs
- precedingquery.cs
- Attributes.cs
- WindowsTab.cs
- BrowserInteropHelper.cs
- ChooseAction.cs
- COM2ExtendedTypeConverter.cs
- DefaultBindingPropertyAttribute.cs
- OleCmdHelper.cs
- AmbiguousMatchException.cs
- CssStyleCollection.cs
- SourceInterpreter.cs
- BeginGetFileNameFromUserRequest.cs
- RbTree.cs
- NamedElement.cs
- GridItemCollection.cs
- securestring.cs
- MetadataCollection.cs
- SqlDataSourceQuery.cs
- MasterPageParser.cs
- SerializationException.cs
- XMLUtil.cs
- NativeMethodsOther.cs
- SqlTypeConverter.cs
- DynamicRenderer.cs
- userdatakeys.cs
- TreeNode.cs
- TrackingStringDictionary.cs
- PropertyCondition.cs
- MenuScrollingVisibilityConverter.cs
- FieldDescriptor.cs
- SimplePropertyEntry.cs
- SafeEventLogReadHandle.cs
- OdbcConnectionPoolProviderInfo.cs
- SchemaElementLookUpTable.cs
- InOutArgument.cs
- BStrWrapper.cs
- DataFormats.cs
- ButtonDesigner.cs
- WebPartConnectionsDisconnectVerb.cs
- DataTransferEventArgs.cs
- TagPrefixInfo.cs
- Vars.cs
- TextMetrics.cs
- CodeDirectoryCompiler.cs
- WebConvert.cs
- COM2AboutBoxPropertyDescriptor.cs
- BuildDependencySet.cs
- DisplayMemberTemplateSelector.cs
- TrackingLocation.cs
- KnownTypesProvider.cs
- WebFaultClientMessageInspector.cs
- BitmapSourceSafeMILHandle.cs
- XmlNodeReader.cs
- PeerNearMe.cs
- ObjectListFieldCollection.cs
- ConfigurationValidatorBase.cs
- VScrollBar.cs
- WSFederationHttpSecurityMode.cs
- HttpResponse.cs
- TCEAdapterGenerator.cs
- FtpRequestCacheValidator.cs
- QueryOutputWriter.cs
- initElementDictionary.cs