Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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
- InvalidAsynchronousStateException.cs
- MemoryMappedViewAccessor.cs
- CharAnimationBase.cs
- SettingsSection.cs
- XmlSubtreeReader.cs
- ActivityTypeResolver.xaml.cs
- SelectionRange.cs
- ReferentialConstraint.cs
- PathNode.cs
- DrawingVisualDrawingContext.cs
- ButtonBaseDesigner.cs
- HashStream.cs
- ProxyHwnd.cs
- ForceCopyBuildProvider.cs
- DrawingContext.cs
- DeploymentExceptionMapper.cs
- UndirectedGraph.cs
- BaseDataBoundControl.cs
- UdpChannelListener.cs
- ComponentEditorForm.cs
- DataSourceView.cs
- HttpProcessUtility.cs
- BitmapDecoder.cs
- TrackingMemoryStreamFactory.cs
- DiagnosticsConfiguration.cs
- StrictAndMessageFilter.cs
- NonParentingControl.cs
- DataGridViewCellStateChangedEventArgs.cs
- AliasGenerator.cs
- TemplateControl.cs
- FaultContext.cs
- SecurityToken.cs
- TypeSource.cs
- WebPartAuthorizationEventArgs.cs
- DynamicValueConverter.cs
- DataGridLengthConverter.cs
- TextFormatterImp.cs
- BinaryCommonClasses.cs
- UIElement3D.cs
- FrameworkContentElementAutomationPeer.cs
- XhtmlConformanceSection.cs
- GrowingArray.cs
- AppliedDeviceFiltersEditor.cs
- DateTimeParse.cs
- WebPartChrome.cs
- AlphabetConverter.cs
- ListenerSessionConnection.cs
- AuthenticationModuleElement.cs
- EmptyStringExpandableObjectConverter.cs
- ItemContainerGenerator.cs
- ViewEventArgs.cs
- KeyEvent.cs
- HandleInitializationContext.cs
- ScrollableControlDesigner.cs
- HyperLinkDesigner.cs
- Html32TextWriter.cs
- Point3DAnimationUsingKeyFrames.cs
- FileDialogPermission.cs
- AutomationElement.cs
- RowVisual.cs
- AsymmetricSignatureDeformatter.cs
- DecimalSumAggregationOperator.cs
- NamedObject.cs
- InitiatorServiceModelSecurityTokenRequirement.cs
- SessionStateSection.cs
- TaskForm.cs
- ControlCollection.cs
- FilterException.cs
- _LocalDataStoreMgr.cs
- NumericUpDown.cs
- ModuleElement.cs
- SerializationInfo.cs
- XmlValidatingReaderImpl.cs
- ResolveInfo.cs
- SoapAttributeAttribute.cs
- XmlAutoDetectWriter.cs
- ComponentEditorPage.cs
- SettingsBase.cs
- QilReference.cs
- Positioning.cs
- ScrollData.cs
- ListDictionary.cs
- MultiView.cs
- RowBinding.cs
- TextEditorLists.cs
- TheQuery.cs
- SerialPort.cs
- DataServiceQueryProvider.cs
- HideDisabledControlAdapter.cs
- LazyLoadBehavior.cs
- EntityDataSourceDesigner.cs
- TraceEventCache.cs
- ClonableStack.cs
- SatelliteContractVersionAttribute.cs
- SystemIPv6InterfaceProperties.cs
- DrawingImage.cs
- ListControl.cs
- ReadOnlyCollectionBuilder.cs
- DesignTimeHTMLTextWriter.cs
- HtmlContainerControl.cs