Code:
/ DotNET / DotNET / 8.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
- WebAdminConfigurationHelper.cs
- AspCompat.cs
- CollectionBase.cs
- VoiceInfo.cs
- URLMembershipCondition.cs
- ObjectSecurity.cs
- QuadraticEase.cs
- ObjectQueryState.cs
- ListViewItemEventArgs.cs
- SortedDictionary.cs
- DesignTimeValidationFeature.cs
- SkinBuilder.cs
- EdmFunctions.cs
- ProgressChangedEventArgs.cs
- DBConnection.cs
- TextEditor.cs
- ExpandCollapseProviderWrapper.cs
- ProfileEventArgs.cs
- CodeMemberProperty.cs
- ExecutionContext.cs
- MetadataItemSerializer.cs
- WSFederationHttpBindingElement.cs
- Size.cs
- PolyQuadraticBezierSegment.cs
- SemaphoreSecurity.cs
- FloaterParagraph.cs
- BinaryNode.cs
- _ShellExpression.cs
- XmlSchemaGroupRef.cs
- DataGridTable.cs
- ChildDocumentBlock.cs
- BitmapEffect.cs
- RectangleHotSpot.cs
- FontCollection.cs
- Type.cs
- XmlDocument.cs
- SslStream.cs
- BinHexDecoder.cs
- DoubleCollection.cs
- PropertyRecord.cs
- OleDbMetaDataFactory.cs
- XmlResolver.cs
- AppModelKnownContentFactory.cs
- RelationshipConstraintValidator.cs
- MatrixStack.cs
- IndexerNameAttribute.cs
- Message.cs
- FileDetails.cs
- XmlAttributeProperties.cs
- ChangeTracker.cs
- CharacterHit.cs
- CalculatedColumn.cs
- XmlSchemaAttribute.cs
- WebPartEditVerb.cs
- PreviewPageInfo.cs
- XmlAttributeCollection.cs
- ITextView.cs
- ScriptHandlerFactory.cs
- WindowInteractionStateTracker.cs
- PropertyChangeTracker.cs
- CommandSet.cs
- HiddenField.cs
- Win32MouseDevice.cs
- StatusBarItem.cs
- AcceleratedTokenProvider.cs
- IdentitySection.cs
- SiteMapNodeItem.cs
- Pens.cs
- GridEntry.cs
- RelatedPropertyManager.cs
- OleDbStruct.cs
- FrameworkTemplate.cs
- Int64AnimationBase.cs
- CalloutQueueItem.cs
- ReachUIElementCollectionSerializer.cs
- xmlsaver.cs
- CompareValidator.cs
- TableRowGroupCollection.cs
- OdbcConnectionStringbuilder.cs
- CacheEntry.cs
- ThreadAbortException.cs
- DataGridViewSelectedCellCollection.cs
- DataGridCommandEventArgs.cs
- PointValueSerializer.cs
- DiscoveryRequestHandler.cs
- ValueConversionAttribute.cs
- FileLogRecordStream.cs
- LinkButton.cs
- ToolStripSplitStackLayout.cs
- System.Data.OracleClient_BID.cs
- SQLChars.cs
- AsyncCodeActivityContext.cs
- DataFormat.cs
- SimpleFieldTemplateFactory.cs
- IPAddress.cs
- OlePropertyStructs.cs
- ExceptQueryOperator.cs
- FigureHelper.cs
- StreamHelper.cs
- Parser.cs