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
- EntityException.cs
- HttpsTransportElement.cs
- OrderedDictionary.cs
- HostVisual.cs
- ProxyGenerationError.cs
- SemanticResolver.cs
- FixedStringLookup.cs
- GroupItemAutomationPeer.cs
- HtmlShimManager.cs
- IPAddress.cs
- OleDbDataAdapter.cs
- ExcCanonicalXml.cs
- TransactedReceiveData.cs
- DocumentViewerBaseAutomationPeer.cs
- _HelperAsyncResults.cs
- InvalidComObjectException.cs
- PrincipalPermission.cs
- EventNotify.cs
- LoginCancelEventArgs.cs
- XmlCharType.cs
- FontConverter.cs
- DescendantBaseQuery.cs
- Visual3D.cs
- WorkflowCommandExtensionItem.cs
- NameScope.cs
- Configuration.cs
- List.cs
- ToolStripDropTargetManager.cs
- VisualStyleTypesAndProperties.cs
- WindowsScrollBarBits.cs
- xmlsaver.cs
- BrowserCapabilitiesFactoryBase.cs
- ValidatingCollection.cs
- TraceEventCache.cs
- SafeRegistryHandle.cs
- SymbolMethod.cs
- UserControlCodeDomTreeGenerator.cs
- GridViewUpdatedEventArgs.cs
- UnsafeNativeMethods.cs
- InternalPermissions.cs
- Decoder.cs
- CodeIdentifiers.cs
- CodeTypeDeclarationCollection.cs
- DocumentViewerBase.cs
- OverloadGroupAttribute.cs
- DataRowView.cs
- SoapSchemaImporter.cs
- OleDbSchemaGuid.cs
- Vector3D.cs
- Polygon.cs
- BindingExpressionBase.cs
- OdbcPermission.cs
- ComponentCollection.cs
- DefaultIfEmptyQueryOperator.cs
- IntAverageAggregationOperator.cs
- XmlSchemaSequence.cs
- WmlPageAdapter.cs
- LassoHelper.cs
- MimeTypeMapper.cs
- SafeCryptContextHandle.cs
- ArglessEventHandlerProxy.cs
- SchemaManager.cs
- MarshalByRefObject.cs
- ImageMap.cs
- XPathEmptyIterator.cs
- StylusButton.cs
- CharacterString.cs
- EntitySetBase.cs
- printdlgexmarshaler.cs
- CellTreeSimplifier.cs
- CompModSwitches.cs
- StaticTextPointer.cs
- AttachedAnnotationChangedEventArgs.cs
- Unit.cs
- ColumnResult.cs
- LinqDataSourceInsertEventArgs.cs
- TableAutomationPeer.cs
- SmtpClient.cs
- CodeSubDirectory.cs
- NameValueFileSectionHandler.cs
- SQLDecimal.cs
- Lasso.cs
- ServiceReference.cs
- UIElement.cs
- DocumentSchemaValidator.cs
- BamlBinaryReader.cs
- TabOrder.cs
- CallTemplateAction.cs
- ReachDocumentPageSerializer.cs
- XmlSerializationReader.cs
- Merger.cs
- ListArgumentProvider.cs
- Control.cs
- Properties.cs
- counter.cs
- ListViewInsertionMark.cs
- ImmutablePropertyDescriptorGridEntry.cs
- ClickablePoint.cs
- GridLengthConverter.cs
- BamlRecordHelper.cs