Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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
- HostnameComparisonMode.cs
- XmlSerializationGeneratedCode.cs
- filewebrequest.cs
- BeginEvent.cs
- OdbcPermission.cs
- StringComparer.cs
- DataGridCellClipboardEventArgs.cs
- UIElement3D.cs
- Int32KeyFrameCollection.cs
- MessageFormatterConverter.cs
- SQLMoneyStorage.cs
- EditingCoordinator.cs
- SaveCardRequest.cs
- XmlCollation.cs
- util.cs
- PropertyPathWorker.cs
- DecoderBestFitFallback.cs
- Renderer.cs
- TextTreeDeleteContentUndoUnit.cs
- MobileTextWriter.cs
- RIPEMD160Managed.cs
- BamlResourceSerializer.cs
- TextTreeDeleteContentUndoUnit.cs
- StylusPointProperty.cs
- EventSource.cs
- RetrieveVirtualItemEventArgs.cs
- TimersDescriptionAttribute.cs
- Icon.cs
- DesignerActionMethodItem.cs
- RemotingException.cs
- ShutDownListener.cs
- Misc.cs
- RectangleConverter.cs
- OleDbCommandBuilder.cs
- QueryCorrelationInitializer.cs
- RotateTransform.cs
- CheckBoxField.cs
- CodeStatementCollection.cs
- TrustSection.cs
- SystemTcpStatistics.cs
- EventLogConfiguration.cs
- XPathBuilder.cs
- ColorAnimationBase.cs
- IIS7UserPrincipal.cs
- GPPOINT.cs
- CodeDomSerializer.cs
- _ScatterGatherBuffers.cs
- AccessibleObject.cs
- PasswordRecoveryAutoFormat.cs
- XsltCompileContext.cs
- SQLBinaryStorage.cs
- InvalidPropValue.cs
- FormViewCommandEventArgs.cs
- StorageEntityContainerMapping.cs
- ThumbAutomationPeer.cs
- PathParser.cs
- XmlDesigner.cs
- LoginView.cs
- Error.cs
- SoapIncludeAttribute.cs
- DataGridRow.cs
- MethodImplAttribute.cs
- prompt.cs
- TreeIterator.cs
- PropertyInformation.cs
- DetailsViewUpdateEventArgs.cs
- BrowserCapabilitiesCompiler.cs
- DesignerWidgets.cs
- WhitespaceSignificantCollectionAttribute.cs
- MetadataPropertyAttribute.cs
- WeakReferenceKey.cs
- XamlVector3DCollectionSerializer.cs
- XPathMessageFilterElement.cs
- InputScopeConverter.cs
- ResolveNextArgumentWorkItem.cs
- RangeValidator.cs
- ChannelListenerBase.cs
- MenuEventArgs.cs
- Pool.cs
- X509Certificate2.cs
- RegularExpressionValidator.cs
- WebPartVerbCollection.cs
- LiteralControl.cs
- CounterNameConverter.cs
- XmlComment.cs
- LinearQuaternionKeyFrame.cs
- PathParser.cs
- X509Certificate.cs
- Logging.cs
- InlineObject.cs
- SubMenuStyle.cs
- MsmqOutputChannel.cs
- RemotingSurrogateSelector.cs
- WebPartEditorApplyVerb.cs
- OuterGlowBitmapEffect.cs
- RoleServiceManager.cs
- controlskin.cs
- SerializationObjectManager.cs
- DataSourceListEditor.cs
- CustomCategoryAttribute.cs