CodeTypeParameterCollection Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Represents a collection of CodeTypeParameter objects.
public ref class CodeTypeParameterCollection : System::Collections::CollectionBase
public class CodeTypeParameterCollection : System.Collections.CollectionBase
type CodeTypeParameterCollection = class
inherit CollectionBase
Public Class CodeTypeParameterCollection
Inherits CollectionBase
- Inheritance
Remarks
The CodeTypeParameterCollection class provides a simple collection object that can be used to store a set of CodeTypeParameter objects.
Constructors
| Name | Description |
|---|---|
| CodeTypeParameterCollection() |
Initializes a new, empty instance of the CodeTypeParameterCollection class. |
| CodeTypeParameterCollection(CodeTypeParameter[]) |
Initializes a new instance of the CodeTypeParameterCollection class containing the specified array of CodeTypeParameter objects. |
| CodeTypeParameterCollection(CodeTypeParameterCollection) |
Initializes a new instance of the CodeTypeParameterCollection class containing the elements of the specified source collection. |
Properties
| Name | Description |
|---|---|
| Item[Int32] |
Gets or sets the CodeTypeParameter object at the specified index in the collection. |
Methods
| Name | Description |
|---|---|
| Add(CodeTypeParameter) |
Adds the specified CodeTypeParameter object to the collection. |
| Add(String) |
Adds the specified CodeTypeParameter object to the collection using the specified data type name. |
| AddRange(CodeTypeParameter[]) |
Copies the elements of the specified CodeTypeParameter array to the end of the collection. |
| AddRange(CodeTypeParameterCollection) |
Copies the elements of the specified CodeTypeParameterCollection to the end of the collection. |
| Contains(CodeTypeParameter) |
Determines whether the collection contains the specified CodeTypeParameter object. |
| CopyTo(CodeTypeParameter[], Int32) |
Copies the items in the collection to the specified one-dimensional Array at the specified index. |
| IndexOf(CodeTypeParameter) |
Gets the index in the collection of the specified CodeTypeParameter object, if it exists in the collection. |
| Insert(Int32, CodeTypeParameter) |
Inserts the specified CodeTypeParameter object into the collection at the specified index. |
| Remove(CodeTypeParameter) |
Removes the specified CodeTypeParameter object from the collection. |