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
- BinarySecretKeyIdentifierClause.cs
- ResourceDescriptionAttribute.cs
- InputProcessorProfiles.cs
- TdsParser.cs
- DataSourceSerializationException.cs
- EditorZoneBase.cs
- DataGridViewColumnTypeEditor.cs
- Stroke.cs
- NativeActivityContext.cs
- MatrixTransform3D.cs
- OperatingSystem.cs
- HttpSocketManager.cs
- TimeoutException.cs
- SqlUdtInfo.cs
- ContentDisposition.cs
- ProfileGroupSettingsCollection.cs
- WindowsGraphicsWrapper.cs
- ControlLocalizer.cs
- HitTestParameters.cs
- ImageSourceConverter.cs
- UiaCoreProviderApi.cs
- COM2IPerPropertyBrowsingHandler.cs
- DBConnection.cs
- TimeSpan.cs
- DiscoveryMessageSequenceGenerator.cs
- DynamicFilterExpression.cs
- FixedSOMPage.cs
- AppDomainFactory.cs
- Panel.cs
- RolePrincipal.cs
- Console.cs
- BamlVersionHeader.cs
- Vector3DKeyFrameCollection.cs
- ReaderWriterLock.cs
- BamlVersionHeader.cs
- Profiler.cs
- XmlDataProvider.cs
- _LazyAsyncResult.cs
- Invariant.cs
- NameTable.cs
- TimerEventSubscription.cs
- SmiEventSink.cs
- Fault.cs
- Vector3D.cs
- SerializationSectionGroup.cs
- SoapSchemaExporter.cs
- ListViewDeletedEventArgs.cs
- AudioLevelUpdatedEventArgs.cs
- UserControl.cs
- InkCanvasInnerCanvas.cs
- SQLDateTime.cs
- AndCondition.cs
- ContextQuery.cs
- MobileSysDescriptionAttribute.cs
- WebConfigurationHost.cs
- SizeIndependentAnimationStorage.cs
- DataGridViewTopRowAccessibleObject.cs
- RecordManager.cs
- SEHException.cs
- Propagator.JoinPropagator.SubstitutingCloneVisitor.cs
- ControllableStoryboardAction.cs
- Listen.cs
- DocumentOrderComparer.cs
- ToolboxCategoryItems.cs
- PageContentAsyncResult.cs
- BamlVersionHeader.cs
- DbMetaDataCollectionNames.cs
- JsonGlobals.cs
- TextEffectCollection.cs
- Inline.cs
- Header.cs
- ChannelFactoryRefCache.cs
- MimeTypePropertyAttribute.cs
- StringArrayConverter.cs
- DataGridViewRowDividerDoubleClickEventArgs.cs
- VideoDrawing.cs
- NameValueCollection.cs
- TextParaLineResult.cs
- LeafCellTreeNode.cs
- QilTypeChecker.cs
- RepeaterCommandEventArgs.cs
- StateMachineAction.cs
- DataGridParentRows.cs
- VersionedStreamOwner.cs
- SendContent.cs
- XmlValidatingReader.cs
- Lock.cs
- ControlTemplate.cs
- CacheManager.cs
- MetadataConversionError.cs
- GenericArgumentsUpdater.cs
- ImageMapEventArgs.cs
- ListBase.cs
- ContentType.cs
- OLEDB_Enum.cs
- FileAccessException.cs
- IOThreadTimer.cs
- EmptyControlCollection.cs
- IDictionary.cs
- ArrayWithOffset.cs