Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / ndp / fx / src / CompMod / System / CodeDOM / CodeTypeMemberCollection.cs / 1 / CodeTypeMemberCollection.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 CodeTypeMemberCollection : CollectionBase { ////// A collection that stores ///objects. /// /// public CodeTypeMemberCollection() { } ////// Initializes a new instance of ///. /// /// public CodeTypeMemberCollection(CodeTypeMemberCollection value) { this.AddRange(value); } ////// Initializes a new instance of ///based on another . /// /// public CodeTypeMemberCollection(CodeTypeMember[] value) { this.AddRange(value); } ////// Initializes a new instance of ///containing any array of objects. /// /// public CodeTypeMember this[int index] { get { return ((CodeTypeMember)(List[index])); } set { List[index] = value; } } ///Represents the entry at the specified index of the ///. /// public int Add(CodeTypeMember value) { return List.Add(value); } ///Adds a ///with the specified value to the /// . /// public void AddRange(CodeTypeMember[] 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(CodeTypeMemberCollection 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(CodeTypeMember value) { return List.Contains(value); } ///Gets a value indicating whether the /// ///contains the specified . /// public void CopyTo(CodeTypeMember[] array, int index) { List.CopyTo(array, index); } ///Copies the ///values to a one-dimensional instance at the /// specified index. /// public int IndexOf(CodeTypeMember value) { return List.IndexOf(value); } ///Returns the index of a ///in /// the . /// public void Insert(int index, CodeTypeMember value) { List.Insert(index, value); } ///Inserts a ///into the at the specified index. /// public void Remove(CodeTypeMember 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 CodeTypeMemberCollection : CollectionBase { ////// A collection that stores ///objects. /// /// public CodeTypeMemberCollection() { } ////// Initializes a new instance of ///. /// /// public CodeTypeMemberCollection(CodeTypeMemberCollection value) { this.AddRange(value); } ////// Initializes a new instance of ///based on another . /// /// public CodeTypeMemberCollection(CodeTypeMember[] value) { this.AddRange(value); } ////// Initializes a new instance of ///containing any array of objects. /// /// public CodeTypeMember this[int index] { get { return ((CodeTypeMember)(List[index])); } set { List[index] = value; } } ///Represents the entry at the specified index of the ///. /// public int Add(CodeTypeMember value) { return List.Add(value); } ///Adds a ///with the specified value to the /// . /// public void AddRange(CodeTypeMember[] 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(CodeTypeMemberCollection 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(CodeTypeMember value) { return List.Contains(value); } ///Gets a value indicating whether the /// ///contains the specified . /// public void CopyTo(CodeTypeMember[] array, int index) { List.CopyTo(array, index); } ///Copies the ///values to a one-dimensional instance at the /// specified index. /// public int IndexOf(CodeTypeMember value) { return List.IndexOf(value); } ///Returns the index of a ///in /// the . /// public void Insert(int index, CodeTypeMember value) { List.Insert(index, value); } ///Inserts a ///into the at the specified index. /// public void Remove(CodeTypeMember 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
- AnimationStorage.cs
- QueryableFilterUserControl.cs
- RectangleHotSpot.cs
- SQLConvert.cs
- MenuItemCollection.cs
- PropertyGeneratedEventArgs.cs
- GridItemPatternIdentifiers.cs
- IgnoreSectionHandler.cs
- LinqDataSourceUpdateEventArgs.cs
- IdentityReference.cs
- Int16Storage.cs
- DBConcurrencyException.cs
- HttpHandlersSection.cs
- UInt64.cs
- ClipboardProcessor.cs
- DocumentViewerAutomationPeer.cs
- MenuCommandsChangedEventArgs.cs
- Unit.cs
- TypeElementCollection.cs
- QuestionEventArgs.cs
- EncoderBestFitFallback.cs
- ResizeGrip.cs
- DiscoveryService.cs
- ExeContext.cs
- MSG.cs
- DataPointer.cs
- _StreamFramer.cs
- MsmqBindingBase.cs
- SystemSounds.cs
- ObjectQuery_EntitySqlExtensions.cs
- Helpers.cs
- SchemaElementLookUpTable.cs
- SmiRecordBuffer.cs
- DateTimeConstantAttribute.cs
- DataGridClipboardHelper.cs
- TreeNodeCollectionEditorDialog.cs
- X509CertificateCollection.cs
- DirectoryInfo.cs
- XmlDomTextWriter.cs
- IgnoreDeviceFilterElement.cs
- ProviderCommandInfoUtils.cs
- ToReply.cs
- X509Utils.cs
- SqlConnectionHelper.cs
- SqlParameterizer.cs
- CommandField.cs
- IBuiltInEvidence.cs
- SecureConversationServiceCredential.cs
- ReceiveContextCollection.cs
- RectangleF.cs
- TreeNodeCollection.cs
- GifBitmapDecoder.cs
- QualifiedCellIdBoolean.cs
- DiagnosticsElement.cs
- Win32.cs
- XpsDocumentEvent.cs
- FormConverter.cs
- LeafCellTreeNode.cs
- ToolStripItemTextRenderEventArgs.cs
- DefaultTypeArgumentAttribute.cs
- CacheForPrimitiveTypes.cs
- GridErrorDlg.cs
- nulltextnavigator.cs
- CdpEqualityComparer.cs
- WebPartCollection.cs
- XmlSchemaInclude.cs
- FacetValues.cs
- ThrowHelper.cs
- SymmetricSecurityProtocol.cs
- GraphicsPath.cs
- PropertyChangedEventManager.cs
- ConstructorBuilder.cs
- ScriptRegistrationManager.cs
- GradientSpreadMethodValidation.cs
- PingOptions.cs
- RowVisual.cs
- CellConstantDomain.cs
- WindowsTitleBar.cs
- ToolStripContentPanel.cs
- WSSecureConversationFeb2005.cs
- PageEventArgs.cs
- ResourceManager.cs
- DataGridItemEventArgs.cs
- TimeoutHelper.cs
- DuplicateWaitObjectException.cs
- SiteMapPath.cs
- EncoderParameters.cs
- LinearKeyFrames.cs
- LazyInitializer.cs
- WebColorConverter.cs
- ToolStripButton.cs
- InProcStateClientManager.cs
- TimeSpanValidator.cs
- ApplicationDirectory.cs
- DataControlFieldCell.cs
- WebContentFormatHelper.cs
- AppliedDeviceFiltersDialog.cs
- BooleanToVisibilityConverter.cs
- DocumentSequenceHighlightLayer.cs
- LinkArea.cs