Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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
- ConstantSlot.cs
- COSERVERINFO.cs
- NodeLabelEditEvent.cs
- PasswordTextContainer.cs
- precedingquery.cs
- GridViewColumnHeader.cs
- DescendantBaseQuery.cs
- ChannelTracker.cs
- WindowsFormsHelpers.cs
- FileDataSource.cs
- AddInControllerImpl.cs
- ColumnResizeAdorner.cs
- DependencyPropertyChangedEventArgs.cs
- EventLog.cs
- GridViewPageEventArgs.cs
- GradientStop.cs
- Quaternion.cs
- FixedHyperLink.cs
- BatchWriter.cs
- InputReport.cs
- Buffer.cs
- LogicalExpressionTypeConverter.cs
- ValueExpressions.cs
- SamlAssertion.cs
- BitmapMetadataBlob.cs
- CurrentChangedEventManager.cs
- RuleInfoComparer.cs
- SchemaImporter.cs
- Attributes.cs
- EpmTargetPathSegment.cs
- ImageIndexConverter.cs
- XmlElementAttributes.cs
- Registry.cs
- X509Extension.cs
- ObjectItemCollection.cs
- ContractType.cs
- PrintDialog.cs
- NamespaceDecl.cs
- ExpandableObjectConverter.cs
- Guid.cs
- DynamicResourceExtensionConverter.cs
- Soap.cs
- MemberJoinTreeNode.cs
- ProgressPage.cs
- _CommandStream.cs
- LocalBuilder.cs
- DefaultParameterValueAttribute.cs
- PropertyIDSet.cs
- QuaternionAnimationBase.cs
- ImmutableCollection.cs
- PolyQuadraticBezierSegment.cs
- ParallelTimeline.cs
- Attributes.cs
- EmbeddedMailObjectCollectionEditor.cs
- OperationAbortedException.cs
- DbReferenceCollection.cs
- DataGridViewSelectedRowCollection.cs
- DataGridViewAutoSizeModeEventArgs.cs
- ManagementObjectCollection.cs
- DataControlImageButton.cs
- BindableAttribute.cs
- WebZoneDesigner.cs
- InitializationEventAttribute.cs
- ThumbAutomationPeer.cs
- TransactionContextManager.cs
- ScriptingRoleServiceSection.cs
- HttpCapabilitiesEvaluator.cs
- LineServices.cs
- StreamGeometryContext.cs
- TypeConverterAttribute.cs
- SafeIUnknown.cs
- UnsupportedPolicyOptionsException.cs
- SoapExtensionStream.cs
- ModelPerspective.cs
- BulletDecorator.cs
- FlowLayoutSettings.cs
- InputManager.cs
- filewebresponse.cs
- DataTableNewRowEvent.cs
- RequiredAttributeAttribute.cs
- ConfigurationStrings.cs
- XmlLanguage.cs
- OLEDB_Enum.cs
- StandardBindingCollectionElement.cs
- TextServicesDisplayAttribute.cs
- ColorMatrix.cs
- ComponentEditorPage.cs
- QueryOperationResponseOfT.cs
- RecipientServiceModelSecurityTokenRequirement.cs
- MenuCommands.cs
- JournalNavigationScope.cs
- SecurityKeyIdentifier.cs
- ObjectFactoryCodeDomTreeGenerator.cs
- ProjectionPathSegment.cs
- JpegBitmapEncoder.cs
- AssemblyGen.cs
- Lasso.cs
- OracleConnectionStringBuilder.cs
- errorpatternmatcher.cs
- ContentFileHelper.cs