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
- WebPartConnectionsCancelEventArgs.cs
- HTTP_SERVICE_CONFIG_URLACL_PARAM.cs
- OutputCacheProviderCollection.cs
- JapaneseCalendar.cs
- FontFamilyIdentifier.cs
- MessageQueuePermissionAttribute.cs
- PermissionSetEnumerator.cs
- UInt64Storage.cs
- ScrollProviderWrapper.cs
- SimpleLine.cs
- ValidatedControlConverter.cs
- ExceptionRoutedEventArgs.cs
- sitestring.cs
- DataGridItemEventArgs.cs
- XamlParser.cs
- ObjectStateManagerMetadata.cs
- CharConverter.cs
- TempFiles.cs
- GroupedContextMenuStrip.cs
- GridPatternIdentifiers.cs
- GB18030Encoding.cs
- FontInfo.cs
- BulletChrome.cs
- FloatUtil.cs
- ObjectStorage.cs
- FrugalMap.cs
- ExpressionVisitor.cs
- UnsafeNativeMethods.cs
- ButtonRenderer.cs
- EntityWrapperFactory.cs
- ErrorEventArgs.cs
- ValueExpressions.cs
- DependencyObjectPropertyDescriptor.cs
- PiiTraceSource.cs
- ThemeDirectoryCompiler.cs
- BitmapSource.cs
- ToolTipService.cs
- ExplicitDiscriminatorMap.cs
- _ChunkParse.cs
- Stacktrace.cs
- TargetFrameworkUtil.cs
- DES.cs
- MiniMapControl.xaml.cs
- AdRotatorDesigner.cs
- CatalogZoneBase.cs
- ToolStripDropDown.cs
- PathTooLongException.cs
- BindingBase.cs
- CurrentChangedEventManager.cs
- HashCodeCombiner.cs
- XmlCharacterData.cs
- DesignBindingPropertyDescriptor.cs
- IdleTimeoutMonitor.cs
- EmissiveMaterial.cs
- GradientStop.cs
- EntitySetRetriever.cs
- BuilderPropertyEntry.cs
- Mutex.cs
- XmlSerializationWriter.cs
- ChineseLunisolarCalendar.cs
- ModelItemCollectionImpl.cs
- ValueSerializer.cs
- ResourcesGenerator.cs
- ValidationPropertyAttribute.cs
- EffectiveValueEntry.cs
- COM2AboutBoxPropertyDescriptor.cs
- LayoutSettings.cs
- ServiceDebugElement.cs
- FixedHighlight.cs
- LocalBuilder.cs
- cookie.cs
- XmlNamedNodeMap.cs
- LockedActivityGlyph.cs
- ForwardPositionQuery.cs
- SqlDependency.cs
- Connector.xaml.cs
- SqlException.cs
- ProjectionCamera.cs
- DirectoryNotFoundException.cs
- Root.cs
- SafeArrayRankMismatchException.cs
- NameValuePermission.cs
- IndexedString.cs
- TextTreeText.cs
- WebPartConnectionsEventArgs.cs
- LinkGrep.cs
- ChannelFactoryRefCache.cs
- NetStream.cs
- WhitespaceRuleLookup.cs
- OleDbReferenceCollection.cs
- ListBindableAttribute.cs
- Helper.cs
- Animatable.cs
- Transform3DGroup.cs
- StrokeNodeOperations2.cs
- OperationCanceledException.cs
- ParserOptions.cs
- ParameterEditorUserControl.cs
- ChangeDirector.cs
- BehaviorEditorPart.cs