Code:
/ 4.0 / 4.0 / 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 /// . // // // ----------------------------------------------------------------------------- // 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
- ElapsedEventArgs.cs
- TextServicesProperty.cs
- KeyGestureValueSerializer.cs
- EmptyStringExpandableObjectConverter.cs
- SequenceQuery.cs
- EntityDataSourceUtil.cs
- PolicyLevel.cs
- CodeDelegateCreateExpression.cs
- EUCJPEncoding.cs
- SystemWebSectionGroup.cs
- ClientFactory.cs
- ContractReference.cs
- TreePrinter.cs
- CodeTypeParameter.cs
- PolicyDesigner.cs
- ResourceWriter.cs
- ServicePointManagerElement.cs
- DrawingAttributesDefaultValueFactory.cs
- WS2007HttpBindingCollectionElement.cs
- CodeGroup.cs
- DragDeltaEventArgs.cs
- GridViewPageEventArgs.cs
- DataGridViewCellParsingEventArgs.cs
- SafeLocalMemHandle.cs
- IndentedWriter.cs
- Decoder.cs
- InvariantComparer.cs
- EntryIndex.cs
- WindowsListViewItemCheckBox.cs
- CSharpCodeProvider.cs
- DataGridViewUtilities.cs
- InternalPolicyElement.cs
- RandomNumberGenerator.cs
- CodeExporter.cs
- FileDialogCustomPlace.cs
- assertwrapper.cs
- DataGridViewCellLinkedList.cs
- ResourceSetExpression.cs
- ProxyManager.cs
- SingleTagSectionHandler.cs
- XsdBuildProvider.cs
- BitmapEffectInputData.cs
- GeneralTransform3D.cs
- SafeCryptoHandles.cs
- Tool.cs
- _IPv6Address.cs
- ServiceModelPerformanceCounters.cs
- WpfXamlType.cs
- Quaternion.cs
- TileBrush.cs
- AccessDataSourceDesigner.cs
- WebPartZoneCollection.cs
- BlurEffect.cs
- XmlILModule.cs
- BinHexDecoder.cs
- TextSegment.cs
- CodeEventReferenceExpression.cs
- WindowShowOrOpenTracker.cs
- ResourcesGenerator.cs
- DnsElement.cs
- GlobalAclOperationRequirement.cs
- SafeNativeMethods.cs
- EmptyStringExpandableObjectConverter.cs
- StateItem.cs
- VirtualizingStackPanel.cs
- ActivityBuilderXamlWriter.cs
- JapaneseCalendar.cs
- MsmqTransportSecurity.cs
- SQLSingleStorage.cs
- ConnectionManagementSection.cs
- LoginDesignerUtil.cs
- MergeFailedEvent.cs
- StrokeNodeOperations.cs
- DeclaredTypeValidator.cs
- ObjectPropertyMapping.cs
- ProfileService.cs
- Root.cs
- InternalPermissions.cs
- LogSwitch.cs
- DPCustomTypeDescriptor.cs
- FileRegion.cs
- SplineQuaternionKeyFrame.cs
- PrefixQName.cs
- ContextToken.cs
- Exceptions.cs
- DataStreams.cs
- EntityStoreSchemaFilterEntry.cs
- DesignerCalendarAdapter.cs
- DateBoldEvent.cs
- DataGridToolTip.cs
- X509SubjectKeyIdentifierClause.cs
- LinkLabelLinkClickedEvent.cs
- WebPartsSection.cs
- WebPartUserCapability.cs
- SHA512Managed.cs
- CellPartitioner.cs
- Matrix3DConverter.cs
- GeneralTransform3DGroup.cs
- DelegateHelpers.cs
- ComProxy.cs