Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / CompMod / System / CodeDOM / CodeStatementCollection.cs / 1305376 / CodeStatementCollection.cs
// ------------------------------------------------------------------------------ //// // // ----------------------------------------------------------------------------- // namespace System.CodeDom { using System; using System.Collections; using System.Runtime.InteropServices; ///[....] // Copyright (c) Microsoft Corporation. All rights reserved. ///// [ ClassInterface(ClassInterfaceType.AutoDispatch), ComVisible(true), Serializable, ] public class CodeStatementCollection : CollectionBase { ////// A collection that stores ///objects. /// /// public CodeStatementCollection() { } ////// Initializes a new instance of ///. /// /// public CodeStatementCollection(CodeStatementCollection value) { this.AddRange(value); } ////// Initializes a new instance of ///based on another . /// /// public CodeStatementCollection(CodeStatement[] value) { this.AddRange(value); } ////// Initializes a new instance of ///containing any array of objects. /// /// public CodeStatement this[int index] { get { return ((CodeStatement)(List[index])); } set { List[index] = value; } } ///Represents the entry at the specified index of the ///. /// public int Add(CodeStatement value) { return List.Add(value); } ///Adds a ///with the specified value to the /// . /// public int Add(CodeExpression value) { return Add(new CodeExpressionStatement(value)); } ///[To be supplied.] ////// public void AddRange(CodeStatement[] 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(CodeStatementCollection 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(CodeStatement value) { return List.Contains(value); } ///Gets a value indicating whether the /// ///contains the specified . /// public void CopyTo(CodeStatement[] array, int index) { List.CopyTo(array, index); } ///Copies the ///values to a one-dimensional instance at the /// specified index. /// public int IndexOf(CodeStatement value) { return List.IndexOf(value); } ///Returns the index of a ///in /// the . /// public void Insert(int index, CodeStatement value) { List.Insert(index, value); } ///Inserts a ///into the at the specified index. /// public void Remove(CodeStatement 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
- DescendentsWalkerBase.cs
- odbcmetadatafactory.cs
- BatchWriter.cs
- CallContext.cs
- CompleteWizardStep.cs
- AutomationPropertyInfo.cs
- FormViewInsertedEventArgs.cs
- LinqDataSourceUpdateEventArgs.cs
- PropertyTab.cs
- EntityAdapter.cs
- MasterPage.cs
- StatementContext.cs
- ConfigurationErrorsException.cs
- ScrollViewerAutomationPeer.cs
- VScrollBar.cs
- SmiTypedGetterSetter.cs
- ConnectionConsumerAttribute.cs
- QilBinary.cs
- QueryResult.cs
- Trigger.cs
- WinFormsSecurity.cs
- GreaterThanOrEqual.cs
- ToolStripCustomTypeDescriptor.cs
- ADMembershipUser.cs
- SamlConstants.cs
- BindingSource.cs
- RankException.cs
- ValidationResult.cs
- QilDataSource.cs
- BinaryMethodMessage.cs
- CellParagraph.cs
- coordinatorfactory.cs
- WindowsListViewItemCheckBox.cs
- RenamedEventArgs.cs
- TextControlDesigner.cs
- COMException.cs
- IndexOutOfRangeException.cs
- bidPrivateBase.cs
- AppSettingsSection.cs
- SimpleTypesSurrogate.cs
- AppSecurityManager.cs
- ConfigurationSettings.cs
- FunctionDescription.cs
- InArgument.cs
- Rotation3DKeyFrameCollection.cs
- MimeObjectFactory.cs
- WindowsListViewItemCheckBox.cs
- DuplicateContext.cs
- PluralizationService.cs
- Mappings.cs
- DocumentScope.cs
- DocumentPageTextView.cs
- Context.cs
- SqlDataSourceConfigureSelectPanel.cs
- DbDataRecord.cs
- EpmCustomContentWriterNodeData.cs
- DoubleCollectionValueSerializer.cs
- InvariantComparer.cs
- ClientSideProviderDescription.cs
- RepeatInfo.cs
- LinqDataSourceView.cs
- DesignerSerializerAttribute.cs
- ImageFormatConverter.cs
- HttpException.cs
- DynamicControlParameter.cs
- X509Certificate2.cs
- TraceFilter.cs
- EdmToObjectNamespaceMap.cs
- SecureStringHasher.cs
- Authorization.cs
- FocusWithinProperty.cs
- PrimarySelectionAdorner.cs
- DynamicRendererThreadManager.cs
- DataControlImageButton.cs
- EditingCommands.cs
- PeerApplication.cs
- RandomNumberGenerator.cs
- UdpDiscoveryEndpoint.cs
- WebPartConnectionsCancelVerb.cs
- ITextView.cs
- DesignerDataSourceView.cs
- Interfaces.cs
- GeneratedCodeAttribute.cs
- TemplateColumn.cs
- SqlDataReaderSmi.cs
- DataGridItemEventArgs.cs
- ZipPackagePart.cs
- PanelContainerDesigner.cs
- TempEnvironment.cs
- XmlProcessingInstruction.cs
- DataViewSettingCollection.cs
- CodeSnippetExpression.cs
- LinqDataSourceUpdateEventArgs.cs
- PropertyGridCommands.cs
- NavigationExpr.cs
- SimpleParser.cs
- ItemList.cs
- TableLayoutSettings.cs
- DataBindingList.cs
- UIElementIsland.cs