Code:
/ 4.0 / 4.0 / 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 /// . // // // ----------------------------------------------------------------------------- // 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
- Authorization.cs
- TextDecorationCollection.cs
- CertificateManager.cs
- Config.cs
- CurrencyWrapper.cs
- SystemIPAddressInformation.cs
- ReachPageContentCollectionSerializerAsync.cs
- UIPropertyMetadata.cs
- ApplicationTrust.cs
- EqualityComparer.cs
- HttpFileCollection.cs
- AspNetRouteServiceHttpHandler.cs
- GeneralTransform.cs
- ErrorInfoXmlDocument.cs
- HitTestFilterBehavior.cs
- _HeaderInfoTable.cs
- GlyphElement.cs
- SettingsPropertyCollection.cs
- EventLogPermissionEntry.cs
- AttributeEmitter.cs
- DataGridViewLinkColumn.cs
- DocumentPage.cs
- SqlXmlStorage.cs
- ProjectedSlot.cs
- SchemeSettingElementCollection.cs
- Bits.cs
- ClaimTypes.cs
- TabItem.cs
- WindowsStatic.cs
- GlyphRunDrawing.cs
- ImageCollectionCodeDomSerializer.cs
- ContainerSelectorActiveEvent.cs
- SatelliteContractVersionAttribute.cs
- WriteFileContext.cs
- ToolBar.cs
- TableItemStyle.cs
- SingleTagSectionHandler.cs
- UnsignedPublishLicense.cs
- FrameworkObject.cs
- SqlDataSourceConfigureSelectPanel.cs
- HandlerBase.cs
- HostedElements.cs
- XmlSubtreeReader.cs
- DataGridViewImageCell.cs
- ExtensionWindow.cs
- Int32Rect.cs
- CounterSample.cs
- EdmSchemaError.cs
- RectIndependentAnimationStorage.cs
- DbConnectionClosed.cs
- PrtTicket_Editor.cs
- StateItem.cs
- PackageDigitalSignature.cs
- BaseServiceProvider.cs
- CustomPopupPlacement.cs
- _CommandStream.cs
- ProvideValueServiceProvider.cs
- PointLight.cs
- CacheOutputQuery.cs
- DebugManager.cs
- ImageListUtils.cs
- EventDescriptorCollection.cs
- TextServicesCompartmentContext.cs
- SqlUDTStorage.cs
- BrowserCapabilitiesFactoryBase.cs
- Point3D.cs
- ResourceDescriptionAttribute.cs
- CachedFontFamily.cs
- EpmHelper.cs
- PropertyEmitterBase.cs
- ExeConfigurationFileMap.cs
- WaitHandleCannotBeOpenedException.cs
- RoutedEventValueSerializer.cs
- VBCodeProvider.cs
- IgnoreFileBuildProvider.cs
- FrameworkEventSource.cs
- XmlSchemaAttribute.cs
- BatchServiceHost.cs
- StylusPointCollection.cs
- PrivilegedConfigurationManager.cs
- ItemList.cs
- PathSegment.cs
- ConfigurationSection.cs
- FixedTextBuilder.cs
- ValidatingCollection.cs
- Process.cs
- Int32Storage.cs
- Vector3DAnimationBase.cs
- Logging.cs
- StylusCaptureWithinProperty.cs
- KeyConverter.cs
- SubtreeProcessor.cs
- List.cs
- FunctionNode.cs
- RoleManagerSection.cs
- WebPartActionVerb.cs
- ThreadInterruptedException.cs
- BevelBitmapEffect.cs
- Misc.cs
- DocumentSequence.cs