Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // ------------------------------------------------------------------------------ //Removes a specific ///from the /// . // 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); } } } // 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
- RegexFCD.cs
- ViewManager.cs
- Bold.cs
- PrivateFontCollection.cs
- WebPartEditorOkVerb.cs
- RectangleConverter.cs
- ExceptionTrace.cs
- SrgsOneOf.cs
- Item.cs
- BinaryParser.cs
- BaseProcessor.cs
- BehaviorEditorPart.cs
- DeclarationUpdate.cs
- WebBrowserContainer.cs
- BCryptNative.cs
- StructureChangedEventArgs.cs
- Convert.cs
- StylusLogic.cs
- IncrementalCompileAnalyzer.cs
- LoadWorkflowCommand.cs
- JournalEntryListConverter.cs
- GiveFeedbackEvent.cs
- RelatedImageListAttribute.cs
- DataGridViewRowHeaderCell.cs
- ColumnTypeConverter.cs
- PriorityQueue.cs
- SmiEventSink.cs
- PenCursorManager.cs
- WeakEventManager.cs
- DesignerValidatorAdapter.cs
- ClientConfigurationSystem.cs
- SiteMembershipCondition.cs
- WebDescriptionAttribute.cs
- ImageMetadata.cs
- OperationCanceledException.cs
- ByteStorage.cs
- GridViewColumnHeaderAutomationPeer.cs
- Policy.cs
- SerializationAttributes.cs
- VirtualPathProvider.cs
- InstanceData.cs
- CompilerTypeWithParams.cs
- RC2CryptoServiceProvider.cs
- WinFormsSecurity.cs
- MediaElementAutomationPeer.cs
- XmlnsCache.cs
- System.Data_BID.cs
- ToolBarButtonClickEvent.cs
- ReadOnlyPropertyMetadata.cs
- ObjRef.cs
- WebPartZoneCollection.cs
- HTTPNotFoundHandler.cs
- Debug.cs
- PassportAuthenticationModule.cs
- RectangleF.cs
- DataGridLinkButton.cs
- DashStyles.cs
- x509utils.cs
- UiaCoreTypesApi.cs
- ViewPort3D.cs
- precedingsibling.cs
- WindowsFormsHostAutomationPeer.cs
- Util.cs
- GenerateTemporaryTargetAssembly.cs
- ToolStripContentPanel.cs
- METAHEADER.cs
- XPathBinder.cs
- UIElement3D.cs
- AnimatedTypeHelpers.cs
- SortQuery.cs
- ThemeDictionaryExtension.cs
- HttpClientCertificate.cs
- GatewayIPAddressInformationCollection.cs
- BitmapMetadataBlob.cs
- WmpBitmapEncoder.cs
- DocumentPageView.cs
- EntitySqlQueryState.cs
- Part.cs
- EvidenceTypeDescriptor.cs
- FactoryId.cs
- RegexMatchCollection.cs
- DbException.cs
- RayMeshGeometry3DHitTestResult.cs
- MouseActionValueSerializer.cs
- BaseDataListActionList.cs
- Query.cs
- LineInfo.cs
- UInt64Converter.cs
- RestClientProxyHandler.cs
- WindowsPrincipal.cs
- SequentialActivityDesigner.cs
- StreamingContext.cs
- GridViewAutomationPeer.cs
- LocalClientSecuritySettingsElement.cs
- Base64Decoder.cs
- MDIWindowDialog.cs
- XmlDataSourceView.cs
- RenameRuleObjectDialog.cs
- DataGridCommandEventArgs.cs
- HttpMethodAttribute.cs