Code:
/ 4.0 / 4.0 / 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 /// . // // // ----------------------------------------------------------------------------- // 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
- ButtonBaseAdapter.cs
- XmlSerializationGeneratedCode.cs
- StylusPlugInCollection.cs
- EventTrigger.cs
- XPathQueryGenerator.cs
- ComplexBindingPropertiesAttribute.cs
- TrackingMemoryStreamFactory.cs
- GraphicsContext.cs
- CompositeFontParser.cs
- WebPartVerbsEventArgs.cs
- Char.cs
- TraceContextRecord.cs
- HtmlElementEventArgs.cs
- RulePatternOps.cs
- PasswordTextContainer.cs
- MouseEventArgs.cs
- BCLDebug.cs
- XamlFrame.cs
- SQLDateTimeStorage.cs
- BuildManagerHost.cs
- ProfilePropertyNameValidator.cs
- ObjectConverter.cs
- BufferedGraphicsManager.cs
- MatrixTransform.cs
- ToolStripItemClickedEventArgs.cs
- PanelStyle.cs
- StringAnimationUsingKeyFrames.cs
- CustomError.cs
- CheckBoxBaseAdapter.cs
- XmlIgnoreAttribute.cs
- SettingsContext.cs
- StringStorage.cs
- _UncName.cs
- ReceiveActivityDesignerTheme.cs
- ResourceExpressionBuilder.cs
- FileStream.cs
- DateRangeEvent.cs
- WebContext.cs
- RotateTransform3D.cs
- DoubleLink.cs
- MouseButtonEventArgs.cs
- XmlDictionary.cs
- View.cs
- DynamicPropertyHolder.cs
- ListBindableAttribute.cs
- DictionaryManager.cs
- ProcessInputEventArgs.cs
- Material.cs
- Error.cs
- PropertyFilterAttribute.cs
- SortedList.cs
- WebPartEditorOkVerb.cs
- Empty.cs
- NavigationWindow.cs
- BasicCellRelation.cs
- MergeFilterQuery.cs
- EnumerationRangeValidationUtil.cs
- GridViewCancelEditEventArgs.cs
- StringToken.cs
- StringValidator.cs
- PaginationProgressEventArgs.cs
- Ticks.cs
- SimpleTextLine.cs
- RangeBaseAutomationPeer.cs
- NavigatingCancelEventArgs.cs
- SqlDataSourceTableQuery.cs
- ImageMapEventArgs.cs
- Walker.cs
- GorillaCodec.cs
- HttpServerVarsCollection.cs
- NameScope.cs
- SmiRequestExecutor.cs
- EmptyTextWriter.cs
- HttpModuleCollection.cs
- BoundConstants.cs
- TableLayoutColumnStyleCollection.cs
- SubstitutionResponseElement.cs
- Request.cs
- SchemaLookupTable.cs
- TokenBasedSetEnumerator.cs
- TrackBar.cs
- SmtpMail.cs
- AppSettingsExpressionBuilder.cs
- securitycriticaldata.cs
- DataGridColumnStyleMappingNameEditor.cs
- ThicknessConverter.cs
- ScopeCollection.cs
- DesignerDataTable.cs
- ImageFormat.cs
- ServiceNotStartedException.cs
- EventPropertyMap.cs
- SemanticResolver.cs
- XmlSchemaDocumentation.cs
- Bookmark.cs
- PageSetupDialog.cs
- CompareValidator.cs
- TiffBitmapDecoder.cs
- DataControlFieldCell.cs
- UserControlAutomationPeer.cs
- ParsedAttributeCollection.cs