Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / CompMod / System / CodeDOM / CodeTypeReferenceCollection.cs / 1305376 / CodeTypeReferenceCollection.cs
// ------------------------------------------------------------------------------ //// // // ----------------------------------------------------------------------------- // namespace System.CodeDom { using System; using System.Collections; using System.Runtime.InteropServices; ///[....] // Copyright (c) Microsoft Corporation. All rights reserved. ///// [ 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); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007.Removes a specific ///from the /// .
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- SeekStoryboard.cs
- ListManagerBindingsCollection.cs
- TransactionsSectionGroup.cs
- LinqDataSourceDeleteEventArgs.cs
- GlobalAllocSafeHandle.cs
- ControlBindingsConverter.cs
- XmlSchemaExporter.cs
- GreenMethods.cs
- PageThemeParser.cs
- ControlAdapter.cs
- HMACSHA1.cs
- ValueQuery.cs
- PriorityRange.cs
- SqlProfileProvider.cs
- CasesDictionary.cs
- ProgressBarBrushConverter.cs
- UserControlParser.cs
- Pkcs7Recipient.cs
- DataGridHelper.cs
- Bold.cs
- ToolTipAutomationPeer.cs
- DSASignatureDeformatter.cs
- _SslStream.cs
- WindowsRebar.cs
- UnsafeNativeMethodsTablet.cs
- CompilerCollection.cs
- FamilyTypeface.cs
- MruCache.cs
- XsdDateTime.cs
- MetadataWorkspace.cs
- DbBuffer.cs
- FileDialog.cs
- GraphicsContainer.cs
- ListViewEditEventArgs.cs
- UpdatePanelTriggerCollection.cs
- SiteMapNodeItemEventArgs.cs
- NotificationContext.cs
- ColumnBinding.cs
- _SSPIWrapper.cs
- Configuration.cs
- ToolBarDesigner.cs
- Int64.cs
- DbConnectionStringCommon.cs
- PrinterResolution.cs
- XmlSchemaSimpleTypeRestriction.cs
- SecurityKeyEntropyMode.cs
- XmlQueryContext.cs
- AdRotatorDesigner.cs
- SurrogateSelector.cs
- CodeIndexerExpression.cs
- Context.cs
- SoapSchemaExporter.cs
- ThicknessAnimationBase.cs
- PeerContact.cs
- SupportsEventValidationAttribute.cs
- WebBrowserDocumentCompletedEventHandler.cs
- xmlNames.cs
- CheckBox.cs
- DynamicILGenerator.cs
- HtmlWindowCollection.cs
- StringSorter.cs
- MetadataArtifactLoaderResource.cs
- HotCommands.cs
- XDeferredAxisSource.cs
- pingexception.cs
- Journaling.cs
- CheckBox.cs
- Sorting.cs
- Hashtable.cs
- GridSplitter.cs
- SymDocumentType.cs
- KnownTypes.cs
- XmlCodeExporter.cs
- TimersDescriptionAttribute.cs
- OleDbCommandBuilder.cs
- DescendentsWalkerBase.cs
- BitmapVisualManager.cs
- TableCell.cs
- thaishape.cs
- ArglessEventHandlerProxy.cs
- ItemDragEvent.cs
- Converter.cs
- ApplicationGesture.cs
- XmlSchemaAttributeGroup.cs
- SqlConnectionString.cs
- FrameworkElement.cs
- GatewayDefinition.cs
- SizeF.cs
- MD5CryptoServiceProvider.cs
- PageStatePersister.cs
- ISAPIRuntime.cs
- RoutedCommand.cs
- TextParagraphProperties.cs
- PeerContact.cs
- CharStorage.cs
- TripleDESCryptoServiceProvider.cs
- MailWebEventProvider.cs
- ExtendedPropertyCollection.cs
- ExceptionWrapper.cs
- HtmlInputControl.cs