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
- WindowsScroll.cs
- NullRuntimeConfig.cs
- ExpressionUtilities.cs
- BindingSource.cs
- StringUtil.cs
- CheckBoxBaseAdapter.cs
- DesigntimeLicenseContext.cs
- PropertyGridEditorPart.cs
- EnumerableCollectionView.cs
- SqlErrorCollection.cs
- ComboBoxAutomationPeer.cs
- SqlTopReducer.cs
- NullableFloatSumAggregationOperator.cs
- DocumentPageHost.cs
- DataGridViewRowCancelEventArgs.cs
- MonitorWrapper.cs
- RepeaterItem.cs
- QuaternionAnimation.cs
- DataTableTypeConverter.cs
- SafeRightsManagementQueryHandle.cs
- TypeLoadException.cs
- OptimalBreakSession.cs
- TextElementEditingBehaviorAttribute.cs
- ParamArrayAttribute.cs
- DetailsViewDeletedEventArgs.cs
- UpdateProgress.cs
- StoreContentChangedEventArgs.cs
- ComboBoxHelper.cs
- GroupBoxAutomationPeer.cs
- TrustSection.cs
- TreeViewCancelEvent.cs
- TableLayoutStyle.cs
- WeakReferenceEnumerator.cs
- SystemBrushes.cs
- XmlIlVisitor.cs
- BezierSegment.cs
- LocalFileSettingsProvider.cs
- ButtonFlatAdapter.cs
- InvokeBase.cs
- FixedHyperLink.cs
- XmlAttributeCache.cs
- sqlcontext.cs
- HtmlTextArea.cs
- PropertyRef.cs
- RunClient.cs
- WebPartEditorOkVerb.cs
- SecondaryIndexDefinition.cs
- ParameterBinding.cs
- cookieexception.cs
- FullTextState.cs
- ConstNode.cs
- HttpProtocolReflector.cs
- TreeNode.cs
- _DomainName.cs
- ClipboardProcessor.cs
- Composition.cs
- TypeDescriptor.cs
- CssTextWriter.cs
- ClientUrlResolverWrapper.cs
- EventLogTraceListener.cs
- HMACSHA512.cs
- DocumentViewer.cs
- TemplatePagerField.cs
- ObjectNotFoundException.cs
- WebPartConnectionsCloseVerb.cs
- HostVisual.cs
- CaretElement.cs
- basevalidator.cs
- SrgsElement.cs
- FixedLineResult.cs
- UInt64Converter.cs
- Speller.cs
- keycontainerpermission.cs
- _AutoWebProxyScriptEngine.cs
- MsmqMessage.cs
- AnnotationMap.cs
- SvcMapFileSerializer.cs
- SecUtil.cs
- ServiceOperationInfoTypeConverter.cs
- SqlConnectionPoolGroupProviderInfo.cs
- ForwardPositionQuery.cs
- SmiRecordBuffer.cs
- SemanticTag.cs
- OracleEncoding.cs
- XsltOutput.cs
- BufferedWebEventProvider.cs
- ConfigurationManager.cs
- SiteMapDataSource.cs
- OleDbWrapper.cs
- HiddenFieldPageStatePersister.cs
- CodeStatement.cs
- OleDbError.cs
- XmlBinaryReaderSession.cs
- TrackingValidationObjectDictionary.cs
- TextRenderer.cs
- LocalizationParserHooks.cs
- EventSetterHandlerConverter.cs
- InvalidProgramException.cs
- SqlBuilder.cs
- BufferModesCollection.cs