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
- SqlEnums.cs
- NativeMethods.cs
- CapabilitiesUse.cs
- TableDetailsRow.cs
- DesignerForm.cs
- CodeGroup.cs
- ConfigurationValidatorBase.cs
- ResourceContainer.cs
- WCFModelStrings.Designer.cs
- SecurityKeyUsage.cs
- infer.cs
- DbProviderSpecificTypePropertyAttribute.cs
- ConfigurationSectionCollection.cs
- GenericAuthenticationEventArgs.cs
- SmtpSection.cs
- HttpSessionStateBase.cs
- SecurityAttributeGenerationHelper.cs
- DynamicRenderer.cs
- ScrollData.cs
- DummyDataSource.cs
- FontSource.cs
- TypeDescriptionProviderAttribute.cs
- HwndSourceParameters.cs
- StoreItemCollection.cs
- BindUriHelper.cs
- WindowsFormsSectionHandler.cs
- OdbcDataReader.cs
- MethodRental.cs
- LocationReference.cs
- ParseHttpDate.cs
- RegexWorker.cs
- MultidimensionalArrayItemReference.cs
- ResourceDisplayNameAttribute.cs
- ConfigPathUtility.cs
- TextBlock.cs
- HitTestParameters.cs
- Compiler.cs
- RemotingAttributes.cs
- EntityClientCacheEntry.cs
- MsdtcWrapper.cs
- ClockGroup.cs
- BufferedOutputStream.cs
- ObjectStateEntryBaseUpdatableDataRecord.cs
- SqlTypeSystemProvider.cs
- CngAlgorithm.cs
- Assembly.cs
- FastEncoder.cs
- HtmlElementErrorEventArgs.cs
- SelectedGridItemChangedEvent.cs
- FragmentNavigationEventArgs.cs
- DataGridState.cs
- DatePicker.cs
- CheckBoxList.cs
- HttpFileCollection.cs
- ControlAdapter.cs
- StartUpEventArgs.cs
- InternalResources.cs
- NonSerializedAttribute.cs
- UserMapPath.cs
- Condition.cs
- ImageListUtils.cs
- AnyAllSearchOperator.cs
- IntegerValidator.cs
- AuthenticationServiceManager.cs
- ArgIterator.cs
- SequenceDesignerAccessibleObject.cs
- MemberInitExpression.cs
- HtmlInputCheckBox.cs
- SqlCrossApplyToCrossJoin.cs
- OverflowException.cs
- ToolZone.cs
- FileDataSourceCache.cs
- BuilderPropertyEntry.cs
- GridViewDeleteEventArgs.cs
- ModelFactory.cs
- SearchForVirtualItemEventArgs.cs
- PropertyNames.cs
- SqlUnionizer.cs
- DataGridViewButtonCell.cs
- ReferentialConstraint.cs
- ObjectStateEntryOriginalDbUpdatableDataRecord.cs
- TreeView.cs
- ResourceDescriptionAttribute.cs
- FontWeightConverter.cs
- StringFreezingAttribute.cs
- DataGridViewCellParsingEventArgs.cs
- NativeMethods.cs
- Accessible.cs
- AssemblyAssociatedContentFileAttribute.cs
- PhysicalOps.cs
- ArcSegment.cs
- DataView.cs
- ConfigurationSectionGroupCollection.cs
- FormViewPageEventArgs.cs
- EventToken.cs
- RowBinding.cs
- SettingsSection.cs
- DataColumn.cs
- StrokeCollectionConverter.cs
- ApplicationDirectoryMembershipCondition.cs