Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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
- MatrixTransform3D.cs
- MatrixAnimationUsingKeyFrames.cs
- TableRow.cs
- CreateUserWizard.cs
- DataServices.cs
- AdRotatorDesigner.cs
- CodeObject.cs
- DataViewSettingCollection.cs
- NameHandler.cs
- TextBox.cs
- ClientSettingsStore.cs
- WindowsListBox.cs
- FixedTextPointer.cs
- PropertyMappingExceptionEventArgs.cs
- GC.cs
- SoapElementAttribute.cs
- _NegotiateClient.cs
- WindowPattern.cs
- WebSysDefaultValueAttribute.cs
- PopOutPanel.cs
- KeyGesture.cs
- EdgeModeValidation.cs
- ArrayList.cs
- WebResponse.cs
- EpmAttributeNameBuilder.cs
- ResourceManagerWrapper.cs
- FixedDocument.cs
- ListBindingConverter.cs
- CachedBitmap.cs
- PrintingPermission.cs
- ProfilePropertySettingsCollection.cs
- SecurityTokenAttachmentMode.cs
- DesignerOptionService.cs
- TemplatedWizardStep.cs
- XmlElementCollection.cs
- StackOverflowException.cs
- XPathSelectionIterator.cs
- TokenBasedSet.cs
- AuthenticationSection.cs
- ModelUIElement3D.cs
- ItemCheckedEvent.cs
- RoutedEventConverter.cs
- RelationshipWrapper.cs
- BindingList.cs
- EntityDataSourceView.cs
- TraversalRequest.cs
- Rect.cs
- CommandExpr.cs
- HttpStaticObjectsCollectionBase.cs
- NullReferenceException.cs
- SecurityHelper.cs
- ArraySegment.cs
- Button.cs
- SizeLimitedCache.cs
- VirtualDirectoryMapping.cs
- WebBrowsableAttribute.cs
- WindowsFont.cs
- BinaryReader.cs
- HyperLinkStyle.cs
- Scene3D.cs
- DynamicPropertyReader.cs
- InstalledFontCollection.cs
- FlowLayout.cs
- CngProvider.cs
- StylusLogic.cs
- Message.cs
- AssemblyNameProxy.cs
- MasterPage.cs
- XamlVector3DCollectionSerializer.cs
- GridProviderWrapper.cs
- InternalBufferOverflowException.cs
- PagesChangedEventArgs.cs
- EntityDataSourceQueryBuilder.cs
- ParameterToken.cs
- TreeNode.cs
- categoryentry.cs
- NotFiniteNumberException.cs
- FileLevelControlBuilderAttribute.cs
- Command.cs
- ExternalException.cs
- KnownColorTable.cs
- LogicalCallContext.cs
- Size.cs
- MimeTypePropertyAttribute.cs
- BooleanConverter.cs
- TableLayoutColumnStyleCollection.cs
- MetadataStore.cs
- HttpListenerRequestTraceRecord.cs
- _HTTPDateParse.cs
- ListenerBinder.cs
- ToolStripItemCollection.cs
- WorkflowEnvironment.cs
- ToolStripItemCollection.cs
- XhtmlBasicCommandAdapter.cs
- GuidelineCollection.cs
- Size3D.cs
- XmlCompatibilityReader.cs
- XamlPathDataSerializer.cs
- Helpers.cs
- TemplateColumn.cs