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
- StyleSheet.cs
- StringFunctions.cs
- InternalDuplexBindingElement.cs
- AVElementHelper.cs
- SQLDouble.cs
- ContentPosition.cs
- ConfigDefinitionUpdates.cs
- JsonStringDataContract.cs
- NameNode.cs
- KnownColorTable.cs
- Dictionary.cs
- LightweightCodeGenerator.cs
- TransactionalPackage.cs
- MemoryResponseElement.cs
- NamedObject.cs
- BaseCollection.cs
- BackgroundWorker.cs
- XmlSyndicationContent.cs
- TableLayoutCellPaintEventArgs.cs
- TitleStyle.cs
- OperationInvokerBehavior.cs
- SpinWait.cs
- RuleSettings.cs
- HitTestWithGeometryDrawingContextWalker.cs
- ExtentCqlBlock.cs
- ActivityXRefConverter.cs
- CheckedPointers.cs
- RemoteCryptoSignHashRequest.cs
- DataColumnMappingCollection.cs
- MainMenu.cs
- DbExpressionBuilder.cs
- PropertyChangingEventArgs.cs
- WebResponse.cs
- SecurityUtils.cs
- TrackBarRenderer.cs
- Rect3D.cs
- _ConnectOverlappedAsyncResult.cs
- ClientConvert.cs
- ImageMap.cs
- IDQuery.cs
- ClaimTypeElementCollection.cs
- BreakRecordTable.cs
- VoiceChangeEventArgs.cs
- RepeatButtonAutomationPeer.cs
- InvokeMethodActivity.cs
- VirtualPathProvider.cs
- VirtualPath.cs
- ImageMap.cs
- BufferBuilder.cs
- _ShellExpression.cs
- TextTreeTextNode.cs
- HttpWebRequest.cs
- SafeProcessHandle.cs
- InvariantComparer.cs
- securestring.cs
- ApplyHostConfigurationBehavior.cs
- _BasicClient.cs
- ScaleTransform.cs
- LinqDataSourceDeleteEventArgs.cs
- ToolZone.cs
- XamlDesignerSerializationManager.cs
- ImageFormat.cs
- ViewStateModeByIdAttribute.cs
- ProgressBarBrushConverter.cs
- XmlAnyElementAttributes.cs
- ParseElement.cs
- SystemColorTracker.cs
- Fonts.cs
- HtmlTable.cs
- OracleConnectionString.cs
- __Error.cs
- RectangleGeometry.cs
- WeakReferenceEnumerator.cs
- ChangeTracker.cs
- RepeaterItemEventArgs.cs
- RepeatBehavior.cs
- TextEditorCopyPaste.cs
- DataPagerField.cs
- TcpClientSocketManager.cs
- InputLanguage.cs
- nulltextcontainer.cs
- BindingExpressionBase.cs
- OdbcParameter.cs
- ThaiBuddhistCalendar.cs
- PropertySegmentSerializer.cs
- PageContentAsyncResult.cs
- ToolboxComponentsCreatedEventArgs.cs
- DispatchChannelSink.cs
- ImageSourceConverter.cs
- Constraint.cs
- BitArray.cs
- PointLightBase.cs
- EditorZoneBase.cs
- ServerValidateEventArgs.cs
- SqlSupersetValidator.cs
- DateTimeConverter.cs
- HeaderedContentControl.cs
- BindingList.cs
- IISUnsafeMethods.cs
- UpDownEvent.cs