Code:
/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / ndp / fx / src / CompMod / System / CodeDOM / CodeTypeReferenceCollection.cs / 1 / CodeTypeReferenceCollection.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 CodeTypeReferenceCollection : CollectionBase { ////// A collection that stores ///objects. /// /// public CodeTypeReferenceCollection() { } ////// Initializes a new instance of ///. /// /// public CodeTypeReferenceCollection(CodeTypeReferenceCollection value) { this.AddRange(value); } ////// Initializes a new instance of ///based on another . /// /// public CodeTypeReferenceCollection(CodeTypeReference[] value) { this.AddRange(value); } ////// Initializes a new instance of ///containing any array of objects. /// /// public CodeTypeReference this[int index] { get { return ((CodeTypeReference)(List[index])); } set { List[index] = value; } } ///Represents the entry at the specified index of the ///. /// public int Add(CodeTypeReference value) { return List.Add(value); } ///Adds a ///with the specified value to the /// . /// public void Add(string value) { Add(new CodeTypeReference(value)); } ///[To be supplied.] ////// public void Add(Type value) { Add(new CodeTypeReference(value)); } ///[To be supplied.] ////// public void AddRange(CodeTypeReference[] 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(CodeTypeReferenceCollection 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(CodeTypeReference value) { return List.Contains(value); } ///Gets a value indicating whether the /// ///contains the specified . /// public void CopyTo(CodeTypeReference[] array, int index) { List.CopyTo(array, index); } ///Copies the ///values to a one-dimensional instance at the /// specified index. /// public int IndexOf(CodeTypeReference value) { return List.IndexOf(value); } ///Returns the index of a ///in /// the . /// public void Insert(int index, CodeTypeReference value) { List.Insert(index, value); } ///Inserts a ///into the at the specified index. /// public void Remove(CodeTypeReference 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
- CatalogPartChrome.cs
- ApplicationDirectoryMembershipCondition.cs
- DrawingContext.cs
- ToolStripDesigner.cs
- clipboard.cs
- ComEventsHelper.cs
- BufferedOutputStream.cs
- InlineObject.cs
- EventProviderWriter.cs
- ConstantProjectedSlot.cs
- BaseDataBoundControl.cs
- ListenerSingletonConnectionReader.cs
- PassportPrincipal.cs
- SeparatorAutomationPeer.cs
- SuppressMessageAttribute.cs
- PublisherIdentityPermission.cs
- SqlConnectionString.cs
- CatalogPartCollection.cs
- ContentTextAutomationPeer.cs
- DragDropManager.cs
- FlowNode.cs
- LabelDesigner.cs
- diagnosticsswitches.cs
- TabPageDesigner.cs
- TransformCollection.cs
- ServiceOperationParameter.cs
- GuidTagList.cs
- XDRSchema.cs
- CallTemplateAction.cs
- IconHelper.cs
- PlanCompilerUtil.cs
- ListItemParagraph.cs
- Registry.cs
- StrongNameKeyPair.cs
- EventHandlersDesigner.cs
- FormsAuthentication.cs
- ConstrainedDataObject.cs
- WebPartConnectionsCancelEventArgs.cs
- DbParameterCollectionHelper.cs
- rsa.cs
- CellIdBoolean.cs
- DependencyPropertyAttribute.cs
- EmptyWorkItem.cs
- path.cs
- TextServicesHost.cs
- ConvertEvent.cs
- ObjectPersistData.cs
- ObjectViewEntityCollectionData.cs
- Dictionary.cs
- CodeObjectCreateExpression.cs
- Walker.cs
- NoResizeSelectionBorderGlyph.cs
- StandardCommands.cs
- RectangleHotSpot.cs
- WinEventWrap.cs
- SmtpLoginAuthenticationModule.cs
- ButtonColumn.cs
- BaseInfoTable.cs
- ToolboxComponentsCreatingEventArgs.cs
- ManagedFilter.cs
- Crc32.cs
- HttpServerProtocol.cs
- UIElement.cs
- TypefaceMap.cs
- ConstraintEnumerator.cs
- HTMLTagNameToTypeMapper.cs
- EntityModelSchemaGenerator.cs
- Mapping.cs
- ZoneLinkButton.cs
- DataObject.cs
- CuspData.cs
- OracleConnectionStringBuilder.cs
- ReflectionUtil.cs
- BindingBase.cs
- newinstructionaction.cs
- Vector3DIndependentAnimationStorage.cs
- EventRoute.cs
- RoleServiceManager.cs
- QfeChecker.cs
- MsmqIntegrationProcessProtocolHandler.cs
- CachedCompositeFamily.cs
- BulletedListEventArgs.cs
- PeerTransportCredentialType.cs
- PartManifestEntry.cs
- TextEncodedRawTextWriter.cs
- Propagator.ExtentPlaceholderCreator.cs
- ValidatedMobileControlConverter.cs
- CheckBox.cs
- DesignerOptionService.cs
- ProcessInfo.cs
- QuaternionConverter.cs
- SevenBitStream.cs
- WorkflowOwnershipException.cs
- DataColumnMapping.cs
- GrowingArray.cs
- _HTTPDateParse.cs
- UncommonField.cs
- StringSource.cs
- Size.cs
- RoutedEventConverter.cs