Code:
/ DotNET / DotNET / 8.0 / untmp / whidbey / REDBITS / ndp / fx / src / CompMod / System / CodeDOM / CodeTypeDeclarationCollection.cs / 1 / CodeTypeDeclarationCollection.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 CodeTypeDeclarationCollection : CollectionBase { ////// A collection that stores ///objects. /// /// public CodeTypeDeclarationCollection() { } ////// Initializes a new instance of ///. /// /// public CodeTypeDeclarationCollection(CodeTypeDeclarationCollection value) { this.AddRange(value); } ////// Initializes a new instance of ///based on another . /// /// public CodeTypeDeclarationCollection(CodeTypeDeclaration[] value) { this.AddRange(value); } ////// Initializes a new instance of ///containing any array of objects. /// /// public CodeTypeDeclaration this[int index] { get { return ((CodeTypeDeclaration)(List[index])); } set { List[index] = value; } } ///Represents the entry at the specified index of the ///. /// public int Add(CodeTypeDeclaration value) { return List.Add(value); } ///Adds a ///with the specified value to the /// . /// public void AddRange(CodeTypeDeclaration[] 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(CodeTypeDeclarationCollection 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(CodeTypeDeclaration value) { return List.Contains(value); } ///Gets a value indicating whether the /// ///contains the specified . /// public void CopyTo(CodeTypeDeclaration[] array, int index) { List.CopyTo(array, index); } ///Copies the ///values to a one-dimensional instance at the /// specified index. /// public int IndexOf(CodeTypeDeclaration value) { return List.IndexOf(value); } ///Returns the index of a ///in /// the . /// public void Insert(int index, CodeTypeDeclaration value) { List.Insert(index, value); } ///Inserts a ///into the at the specified index. /// public void Remove(CodeTypeDeclaration 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
- RichTextBox.cs
- XmlnsDictionary.cs
- SerializerDescriptor.cs
- oledbconnectionstring.cs
- DBSchemaRow.cs
- GlobalizationSection.cs
- HtmlInputText.cs
- UpDownBase.cs
- XamlBrushSerializer.cs
- DataGridViewImageColumn.cs
- BitHelper.cs
- IncrementalReadDecoders.cs
- CodeTryCatchFinallyStatement.cs
- BamlBinaryWriter.cs
- InlinedAggregationOperator.cs
- DataGridRelationshipRow.cs
- ForEach.cs
- AxisAngleRotation3D.cs
- ExtensionFile.cs
- CompilerGeneratedAttribute.cs
- PolicyAssertionCollection.cs
- ClientScriptItemCollection.cs
- SafeEventLogReadHandle.cs
- PerfCounters.cs
- PropertyGeneratedEventArgs.cs
- DataGridViewColumnDividerDoubleClickEventArgs.cs
- AssemblyBuilder.cs
- RowVisual.cs
- CodeSubDirectoriesCollection.cs
- DataGridRow.cs
- HtmlForm.cs
- JapaneseCalendar.cs
- Label.cs
- ProviderBase.cs
- TimeSpanStorage.cs
- XmlElementAttributes.cs
- VisualTreeUtils.cs
- ControlFilterExpression.cs
- UseManagedPresentationElement.cs
- BuildProviderAppliesToAttribute.cs
- GeometryConverter.cs
- FlowDocumentPage.cs
- UTF32Encoding.cs
- DependencyObject.cs
- BoundsDrawingContextWalker.cs
- BitmapMetadataEnumerator.cs
- MULTI_QI.cs
- GenericWebPart.cs
- TransformProviderWrapper.cs
- BookmarkResumptionRecord.cs
- SchemaType.cs
- TextServicesDisplayAttribute.cs
- DuplicateDetector.cs
- Pens.cs
- AppDomain.cs
- InsufficientMemoryException.cs
- VirtualizingStackPanel.cs
- glyphs.cs
- TemplatePartAttribute.cs
- OracleException.cs
- IProducerConsumerCollection.cs
- InvalidEnumArgumentException.cs
- UIElement.cs
- ItemCollection.cs
- OpCopier.cs
- ActivityDesignerResources.cs
- RootBrowserWindowProxy.cs
- PropertyBuilder.cs
- EventMappingSettings.cs
- Int64AnimationBase.cs
- PenLineJoinValidation.cs
- CSharpCodeProvider.cs
- WebPartTracker.cs
- Repeater.cs
- SoapSchemaMember.cs
- AncestorChangedEventArgs.cs
- FlagsAttribute.cs
- BamlLocalizationDictionary.cs
- CatalogPartChrome.cs
- CustomValidator.cs
- XmlEntity.cs
- ModifyActivitiesPropertyDescriptor.cs
- path.cs
- TemplateControl.cs
- Automation.cs
- SqlMetaData.cs
- WebPartMinimizeVerb.cs
- IPipelineRuntime.cs
- ToolboxComponentsCreatingEventArgs.cs
- ChannelEndpointElement.cs
- WindowsListBox.cs
- FlowPosition.cs
- safex509handles.cs
- Context.cs
- EntitySqlQueryCacheEntry.cs
- SQLInt16.cs
- CodePrimitiveExpression.cs
- KnownIds.cs
- DataGrid.cs
- DataGridViewCellLinkedList.cs