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
- TypeTypeConverter.cs
- RTLAwareMessageBox.cs
- CalculatedColumn.cs
- Int64KeyFrameCollection.cs
- Line.cs
- HttpListenerResponse.cs
- StringComparer.cs
- KerberosRequestorSecurityToken.cs
- WindowsFormsLinkLabel.cs
- DataGridView.cs
- EntityDataReader.cs
- WhiteSpaceTrimStringConverter.cs
- WindowsListBox.cs
- ViewManager.cs
- WhileDesigner.cs
- RestrictedTransactionalPackage.cs
- ConfigurationValidatorAttribute.cs
- SecurityTokenValidationException.cs
- UInt32Storage.cs
- Graphics.cs
- GraphicsState.cs
- NegotiationTokenAuthenticator.cs
- DbProviderManifest.cs
- ConnectionPointCookie.cs
- System.Data.OracleClient_BID.cs
- Stroke2.cs
- Normalization.cs
- SQLMembershipProvider.cs
- Sql8ConformanceChecker.cs
- TableTextElementCollectionInternal.cs
- NumberFormatter.cs
- WindowsTooltip.cs
- DbBuffer.cs
- isolationinterop.cs
- ClipboardData.cs
- BuildProviderCollection.cs
- CodeSnippetCompileUnit.cs
- RoutingBehavior.cs
- DocumentAutomationPeer.cs
- SymbolTable.cs
- HtmlLink.cs
- EncryptedData.cs
- DataGridViewRowConverter.cs
- FactoryGenerator.cs
- DataGridViewCellLinkedList.cs
- Function.cs
- HyperLinkStyle.cs
- SoapDocumentMethodAttribute.cs
- UnsafeNetInfoNativeMethods.cs
- RadioButtonList.cs
- AssemblyHash.cs
- WebEventCodes.cs
- COM2ComponentEditor.cs
- CommittableTransaction.cs
- EntityDataSourceUtil.cs
- HtmlTernaryTree.cs
- WindowCollection.cs
- BindingNavigator.cs
- MemberHolder.cs
- SourceFilter.cs
- PeerTransportListenAddressConverter.cs
- ActivitySurrogate.cs
- ListChangedEventArgs.cs
- TypeUsage.cs
- PropVariant.cs
- OracleTimeSpan.cs
- EmptyEnumerator.cs
- PersonalizableTypeEntry.cs
- HtmlTextArea.cs
- MouseDevice.cs
- MenuItem.cs
- IdentitySection.cs
- WindowCollection.cs
- Size.cs
- ByteStorage.cs
- SrgsRuleRef.cs
- DataGridViewCellStyleConverter.cs
- shaper.cs
- Propagator.ExtentPlaceholderCreator.cs
- SafeCertificateStore.cs
- CompiledIdentityConstraint.cs
- SecurityContext.cs
- OdbcEnvironmentHandle.cs
- ApplicationManager.cs
- DataGridViewRowErrorTextNeededEventArgs.cs
- PropertyBuilder.cs
- XPathDocumentIterator.cs
- LinearGradientBrush.cs
- HttpModuleCollection.cs
- AppDomainShutdownMonitor.cs
- ToolboxItemWrapper.cs
- UnhandledExceptionEventArgs.cs
- HyperLink.cs
- PenThreadPool.cs
- ProfileInfo.cs
- SqlStream.cs
- DeploymentExceptionMapper.cs
- DetailsViewInsertedEventArgs.cs
- RangeValidator.cs
- _OSSOCK.cs