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
- TextRangeEditLists.cs
- XmlAttributeCollection.cs
- SpotLight.cs
- InfocardChannelParameter.cs
- DebugView.cs
- TimerElapsedEvenArgs.cs
- GlobalDataBindingHandler.cs
- TextElementAutomationPeer.cs
- Empty.cs
- SystemFonts.cs
- FileUpload.cs
- XmlChildEnumerator.cs
- Solver.cs
- WindowsListView.cs
- WinInet.cs
- GridViewHeaderRowPresenter.cs
- ConfigDefinitionUpdates.cs
- TextBox.cs
- DomNameTable.cs
- ControlUtil.cs
- EpmSourcePathSegment.cs
- SynchronizedInputAdaptor.cs
- WorkflowValidationFailedException.cs
- TextAutomationPeer.cs
- DbConvert.cs
- PassportPrincipal.cs
- XmlNamespaceMappingCollection.cs
- serverconfig.cs
- ProxyGenerationError.cs
- InteropExecutor.cs
- X509Chain.cs
- RenderDataDrawingContext.cs
- PageContent.cs
- ChangeInterceptorAttribute.cs
- CaseExpr.cs
- PerformanceCounterManager.cs
- EntryIndex.cs
- SByteStorage.cs
- StrongNameUtility.cs
- SignedInfo.cs
- AsyncResult.cs
- CatalogZoneDesigner.cs
- StringAnimationBase.cs
- Cloud.cs
- SchemaInfo.cs
- Connector.xaml.cs
- TableNameAttribute.cs
- SubclassTypeValidatorAttribute.cs
- RSAPKCS1KeyExchangeFormatter.cs
- DataSourceSelectArguments.cs
- RepeaterCommandEventArgs.cs
- EntityDataSourceWrapper.cs
- RegexStringValidatorAttribute.cs
- ActivityInstanceMap.cs
- SqlServices.cs
- NotificationContext.cs
- DataControlPagerLinkButton.cs
- ChildTable.cs
- EventlogProvider.cs
- ParseElementCollection.cs
- ObjectHandle.cs
- EntryWrittenEventArgs.cs
- IssuedSecurityTokenParameters.cs
- DetailsViewInsertEventArgs.cs
- DrawingContextDrawingContextWalker.cs
- ClientData.cs
- XmlProcessingInstruction.cs
- AQNBuilder.cs
- CommonDialog.cs
- AssemblyAssociatedContentFileAttribute.cs
- WindowsScrollBar.cs
- ToolStripSettings.cs
- ClientSession.cs
- BitmapImage.cs
- DesignerForm.cs
- AbsoluteQuery.cs
- Msec.cs
- RequestCachingSection.cs
- TrackingParticipant.cs
- CodeArrayCreateExpression.cs
- CategoryGridEntry.cs
- UriParserTemplates.cs
- HtmlMeta.cs
- WindowsButton.cs
- TextLineResult.cs
- ProgressBarRenderer.cs
- ExtendedPropertyDescriptor.cs
- DelegatedStream.cs
- AutomationPatternInfo.cs
- Vector3DAnimationUsingKeyFrames.cs
- PaintEvent.cs
- RawStylusInputReport.cs
- Completion.cs
- WeakEventTable.cs
- RpcAsyncResult.cs
- IPGlobalProperties.cs
- InvalidOperationException.cs
- DecimalFormatter.cs
- DbgCompiler.cs
- GenericsInstances.cs