Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / ndp / fx / src / CompMod / System / CodeDOM / CodeStatementCollection.cs / 1 / CodeStatementCollection.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 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 /// . // 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 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
- StatusBar.cs
- MetadataCacheItem.cs
- ImageAutomationPeer.cs
- DelegatingMessage.cs
- MouseEventArgs.cs
- SourceElementsCollection.cs
- ResXResourceWriter.cs
- FormViewDeletedEventArgs.cs
- SchemaCollectionPreprocessor.cs
- SmiRequestExecutor.cs
- CdpEqualityComparer.cs
- SystemIPAddressInformation.cs
- NullReferenceException.cs
- ExtenderProvidedPropertyAttribute.cs
- _Win32.cs
- SocketConnection.cs
- WebBrowser.cs
- ParameterToken.cs
- SpellCheck.cs
- AttributeInfo.cs
- ActivityDesignerResources.cs
- SecurityDescriptor.cs
- FtpCachePolicyElement.cs
- ArgumentOutOfRangeException.cs
- SendingRequestEventArgs.cs
- ConsoleKeyInfo.cs
- ArrayWithOffset.cs
- BinaryParser.cs
- PermissionListSet.cs
- RoutingConfiguration.cs
- ObjectItemCollection.cs
- SymDocumentType.cs
- Encoder.cs
- ThicknessAnimationBase.cs
- DataContractSet.cs
- SafeCryptContextHandle.cs
- ParseChildrenAsPropertiesAttribute.cs
- SessionStateContainer.cs
- FormCollection.cs
- Empty.cs
- Literal.cs
- RuntimeConfigLKG.cs
- TextTreeObjectNode.cs
- ProcessManager.cs
- ConfigXmlAttribute.cs
- SafeLocalMemHandle.cs
- BoolExpr.cs
- Group.cs
- TransformDescriptor.cs
- PublisherMembershipCondition.cs
- ButtonStandardAdapter.cs
- XmlSchemaParticle.cs
- FilterableAttribute.cs
- ToolStripSettings.cs
- StringSorter.cs
- DataGridBoundColumn.cs
- XAMLParseException.cs
- TableLayoutStyleCollection.cs
- IdentifierCollection.cs
- OdbcParameter.cs
- EncoderParameter.cs
- ConnectionPointCookie.cs
- RichTextBoxConstants.cs
- IntPtr.cs
- ContainerUtilities.cs
- GZipStream.cs
- SecurityCredentialsManager.cs
- TransformationRules.cs
- PathGeometry.cs
- EntityDataSourceMemberPath.cs
- SkipStoryboardToFill.cs
- GridPatternIdentifiers.cs
- GenericEnumConverter.cs
- ListViewItemEventArgs.cs
- DbConnectionPoolOptions.cs
- ImageFormatConverter.cs
- RtType.cs
- DomainUpDown.cs
- StateDesigner.Layouts.cs
- _AcceptOverlappedAsyncResult.cs
- XmlMessageFormatter.cs
- XpsFixedDocumentReaderWriter.cs
- SafeTokenHandle.cs
- SiteMapNode.cs
- GeometryModel3D.cs
- MailDefinition.cs
- ServerIdentity.cs
- Ops.cs
- DataGridViewCellParsingEventArgs.cs
- ProgressBar.cs
- Documentation.cs
- WinFormsSpinner.cs
- Hyperlink.cs
- BitmapEffectInput.cs
- UrlPath.cs
- QueryStatement.cs
- WebServiceReceive.cs
- HandlerFactoryWrapper.cs
- SqlDataRecord.cs
- SqlConnectionPoolGroupProviderInfo.cs