Code:
/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / 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); } } }Removes a specific ///from the /// .
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- PlanCompilerUtil.cs
- TraceProvider.cs
- TableCell.cs
- SqlClientWrapperSmiStream.cs
- BamlResourceSerializer.cs
- Track.cs
- XmlSchemaInclude.cs
- ItemChangedEventArgs.cs
- KeySpline.cs
- CmsInterop.cs
- CodeTypeOfExpression.cs
- SchemaExporter.cs
- OdbcDataReader.cs
- ObjectPropertyMapping.cs
- mediaclock.cs
- ClientSideProviderDescription.cs
- BindingCollection.cs
- SingleAnimation.cs
- StoreContentChangedEventArgs.cs
- HttpHeaderCollection.cs
- HexParser.cs
- TransactionChannelFactory.cs
- CellLabel.cs
- SoapAttributeAttribute.cs
- ColorPalette.cs
- FixedPage.cs
- OpCodes.cs
- KeyManager.cs
- AvTrace.cs
- Material.cs
- GridViewCommandEventArgs.cs
- DependencyPropertyHelper.cs
- SynchronizationContext.cs
- DataColumnSelectionConverter.cs
- HostVisual.cs
- PeerContact.cs
- XmlSchemaImport.cs
- GiveFeedbackEvent.cs
- DateTimeConverter.cs
- CalendarData.cs
- SortedList.cs
- GiveFeedbackEvent.cs
- PackWebRequest.cs
- PaperSize.cs
- CreateUserWizard.cs
- ToolStripManager.cs
- PartManifestEntry.cs
- URIFormatException.cs
- VersionedStreamOwner.cs
- MarshalDirectiveException.cs
- ObjectDataSourceEventArgs.cs
- NavigateEvent.cs
- WeakEventManager.cs
- AtlasWeb.Designer.cs
- Typeface.cs
- NavigationWindow.cs
- RepeatInfo.cs
- HttpCacheVary.cs
- XamlWrapperReaders.cs
- UserInitiatedNavigationPermission.cs
- SchemaNamespaceManager.cs
- PropertyDescriptorCollection.cs
- ContainerSelectorActiveEvent.cs
- ChildTable.cs
- EdmRelationshipNavigationPropertyAttribute.cs
- KnownColorTable.cs
- XmlSchemaNotation.cs
- SelectionEditingBehavior.cs
- PropertyChangedEventManager.cs
- PenContexts.cs
- TypeDescriptor.cs
- Assembly.cs
- ScrollItemProviderWrapper.cs
- XPathNodeHelper.cs
- BuildProviderAppliesToAttribute.cs
- RightsManagementEncryptedStream.cs
- IndexedEnumerable.cs
- AmbientEnvironment.cs
- AuthenticationService.cs
- XmlILAnnotation.cs
- TdsValueSetter.cs
- TypeLoadException.cs
- _HelperAsyncResults.cs
- SQLDecimal.cs
- DisplayNameAttribute.cs
- ProcessProtocolHandler.cs
- PackWebRequest.cs
- WindowsGraphics.cs
- EntityDataReader.cs
- ApplicationInfo.cs
- ConnectivityStatus.cs
- TemplateBuilder.cs
- WebServiceErrorEvent.cs
- ObjectReaderCompiler.cs
- Paragraph.cs
- DataGridViewRowEventArgs.cs
- SessionParameter.cs
- VectorCollectionValueSerializer.cs
- CheckedListBox.cs
- RadioButtonBaseAdapter.cs