Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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
- Selection.cs
- BoolLiteral.cs
- PointUtil.cs
- PackageFilter.cs
- ObjectStateManagerMetadata.cs
- Point3DAnimation.cs
- EllipseGeometry.cs
- ControlCollection.cs
- ButtonStandardAdapter.cs
- Vector3dCollection.cs
- HuffmanTree.cs
- Rights.cs
- FileCodeGroup.cs
- ObjectAnimationUsingKeyFrames.cs
- keycontainerpermission.cs
- StringKeyFrameCollection.cs
- ParameterElementCollection.cs
- ItemCheckEvent.cs
- FixedSOMTable.cs
- ActivityWithResultWrapper.cs
- TableAutomationPeer.cs
- InkCanvasSelectionAdorner.cs
- DefaultMemberAttribute.cs
- DynamicAttribute.cs
- URI.cs
- XmlArrayItemAttributes.cs
- RewritingPass.cs
- DurableDispatcherAddressingFault.cs
- OdbcHandle.cs
- login.cs
- WebPartDisplayModeCancelEventArgs.cs
- TypeUnloadedException.cs
- Message.cs
- DataGridViewEditingControlShowingEventArgs.cs
- HttpRequestWrapper.cs
- ConfigurationSchemaErrors.cs
- TableLayoutSettingsTypeConverter.cs
- TimeStampChecker.cs
- EndpointNotFoundException.cs
- DiagnosticTraceSchemas.cs
- DispatcherExceptionFilterEventArgs.cs
- SamlAdvice.cs
- COM2DataTypeToManagedDataTypeConverter.cs
- XmlLanguageConverter.cs
- PageThemeBuildProvider.cs
- MatrixUtil.cs
- ConfigsHelper.cs
- BlurEffect.cs
- JulianCalendar.cs
- RegexTypeEditor.cs
- SchemaTableColumn.cs
- DataGridViewCheckBoxColumn.cs
- FileDialog_Vista_Interop.cs
- DesignerLabelAdapter.cs
- PlainXmlWriter.cs
- ImageSourceConverter.cs
- SiteMapHierarchicalDataSourceView.cs
- DrawingBrush.cs
- HttpClientChannel.cs
- ItemContainerGenerator.cs
- storepermission.cs
- ParsedAttributeCollection.cs
- DataServiceRequestOfT.cs
- SqlParameterizer.cs
- WebPartEditorCancelVerb.cs
- DataIdProcessor.cs
- TokenBasedSet.cs
- CustomExpression.cs
- ProtocolsConfiguration.cs
- cookieexception.cs
- FileChangesMonitor.cs
- regiisutil.cs
- EntityContainerEmitter.cs
- WebPartVerbCollection.cs
- ThrowOnMultipleAssignment.cs
- BamlResourceSerializer.cs
- TextFormatterContext.cs
- Interlocked.cs
- HttpProcessUtility.cs
- Annotation.cs
- CheckBox.cs
- GridEntryCollection.cs
- ApplicationHost.cs
- DataGridViewBand.cs
- KnownTypeHelper.cs
- MenuItem.cs
- FreezableCollection.cs
- InternalConfigRoot.cs
- SAPIEngineTypes.cs
- SerializationInfo.cs
- ErrorFormatter.cs
- SortedDictionary.cs
- HandlerFactoryWrapper.cs
- CharacterBufferReference.cs
- ColorMatrix.cs
- BindingElementCollection.cs
- DataGrid.cs
- MatrixStack.cs
- SimpleMailWebEventProvider.cs
- PartitionedDataSource.cs