Code:
/ DotNET / DotNET / 8.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
- HttpCapabilitiesSectionHandler.cs
- EntityDataSourceEntityTypeFilterItem.cs
- UserMapPath.cs
- AttributedMetaModel.cs
- linebase.cs
- RowToParametersTransformer.cs
- DataBoundControlHelper.cs
- AmbiguousMatchException.cs
- Int32Collection.cs
- ActivityWithResultWrapper.cs
- CodeDOMProvider.cs
- Types.cs
- OleDbConnectionInternal.cs
- TransactionScope.cs
- FramingDecoders.cs
- EntityDataSourceConfigureObjectContext.cs
- SHA512.cs
- Queue.cs
- Type.cs
- BlockExpression.cs
- BrowserPolicyValidator.cs
- DataSourceHelper.cs
- PenThreadWorker.cs
- ObjectTag.cs
- DataGridPagingPage.cs
- HttpDebugHandler.cs
- LeafCellTreeNode.cs
- KeyValuePair.cs
- ScriptReference.cs
- ParameterDataSourceExpression.cs
- AdapterDictionary.cs
- BooleanFunctions.cs
- parserscommon.cs
- BitmapDownload.cs
- BuildManagerHost.cs
- SliderAutomationPeer.cs
- CngProvider.cs
- ControlOperationBehavior.cs
- ObjectDataProvider.cs
- DefaultPerformanceCounters.cs
- GeometryConverter.cs
- MetadataCacheItem.cs
- RoleExceptions.cs
- PackageDigitalSignatureManager.cs
- EpmContentDeSerializerBase.cs
- LogEntryHeaderv1Deserializer.cs
- DataControlFieldTypeEditor.cs
- BamlLocalizabilityResolver.cs
- TextDecoration.cs
- TextEditorParagraphs.cs
- XmlSchemaSimpleTypeUnion.cs
- TrackBarRenderer.cs
- TableLayoutPanelCellPosition.cs
- ConfigXmlWhitespace.cs
- TargetControlTypeCache.cs
- MenuRendererStandards.cs
- DateTime.cs
- OleDbErrorCollection.cs
- InsufficientMemoryException.cs
- DefaultBinder.cs
- TextViewSelectionProcessor.cs
- ArraySet.cs
- PlainXmlWriter.cs
- Enlistment.cs
- clipboard.cs
- BindingMemberInfo.cs
- WebPartConnectionsCancelVerb.cs
- SequenceDesignerAccessibleObject.cs
- CommandValueSerializer.cs
- FileEnumerator.cs
- ImportedPolicyConversionContext.cs
- HandleExceptionArgs.cs
- WindowsUserNameSecurityTokenAuthenticator.cs
- xmlformatgeneratorstatics.cs
- GridEntryCollection.cs
- DeflateInput.cs
- Context.cs
- RectValueSerializer.cs
- ActivityCollectionMarkupSerializer.cs
- SelectionPattern.cs
- HttpResponse.cs
- EventRouteFactory.cs
- NativeMethods.cs
- FileResponseElement.cs
- EmissiveMaterial.cs
- QilTypeChecker.cs
- ComplexBindingPropertiesAttribute.cs
- DecoderBestFitFallback.cs
- LinearQuaternionKeyFrame.cs
- StrongTypingException.cs
- StringDictionary.cs
- MessageBox.cs
- NameScopePropertyAttribute.cs
- TreeBuilderBamlTranslator.cs
- WebPartManagerInternals.cs
- ArraySegment.cs
- WebPartZone.cs
- BamlLocalizerErrorNotifyEventArgs.cs
- Point4DConverter.cs
- wpf-etw.cs