PostSharp SDK6.6//Post­Sharp.​Sdk.​Code­Model.​Collections Namespace/Generic­Parameter­Declaration­Collection Class

GenericParameterDeclarationCollection Class

Collection of generic parameters (GenericParameterDeclaration).
Inheritance Hierarchy
System.Object
  PostSharp.Sdk.CodeModel.Collections.ElementCollection
    PostSharp.Sdk.CodeModel.Collections.ElementCollection<GenericParameterDeclaration>
      OrdinalDeclarationCollection<GenericParameterDeclaration>
        PostSharp.Sdk.CodeModel.Collections.GenericParameterDeclarationCollection

Namespace:  PostSharp.Sdk.CodeModel.Collections
Assembly:  PostSharp.Compiler.Engine (in PostSharp.Compiler.Engine.dll) Version: 6.6.3.0 (6.6.3.0)
Syntax
C#
public class GenericParameterDeclarationCollection : OrdinalDeclarationCollection<GenericParameterDeclaration>, 
	IList<ITypeSignature>, ICollection<ITypeSignature>, IEnumerable<ITypeSignature>, 
	IEnumerable

The GenericParameterDeclarationCollection type exposes the following members.

Properties
  NameDescription
Public propertyCount
Gets the number of elements contained in the ICollection<T>.
(Inherited from ElementCollection<T>.)
Public propertyIsDisposed Obsolete.
Determines whether the current collection has been disposed.
(Inherited from ElementCollection<T>.)
Protected propertyIsLazyLoadingSupported
Determines if the current collection supports lazy loading.
(Overrides ElementCollection<T>.IsLazyLoadingSupported.)
Public propertyIsReadOnly
Gets a value indicating whether the ICollection<T> is read-only.
(Inherited from ElementCollection<T>.)
Public propertyOwner
Gets the owner Element.
(Inherited from ElementCollection<T>.)
Public propertyRole
Gets the role of the current collection in the owner element.
(Inherited from ElementCollection<T>.)
Methods
  NameDescription
Public methodAdd
Adds an item to the ICollection<T>.
(Inherited from ElementCollection<T>.)
Public methodAddRange
Adds a collection of items to the current collection.
(Inherited from ElementCollection<T>.)
Public methodClear
Removes all items from the ICollection<T>.
(Inherited from ElementCollection<T>.)
Public methodClearCache
Clear the cache (typically mapping to System.Reflection or, if the current element is a reference, to the related definition) of all items of this collection.
(Inherited from ElementCollection<T>.)
Public methodContains
Determines whether the ICollection<T> contains a specific value.
(Inherited from ElementCollection<T>.)
Public methodCopyTo
Copies the elements of the ICollection<T> to an Array, starting at a particular Array index.
(Inherited from ElementCollection<T>.)
Public methodDispose Obsolete.
Disposes the resources held by the current instance.
(Inherited from ElementCollection<T>.)
Protected methodDoLazyLoading
Loads the content of the collection.
(Overrides ElementCollection<T>.DoLazyLoading().)
Public methodEndImport (Inherited from ElementCollection<T>.)
Public methodEnsureCapacity
Allocates additional capacity in the collection.
(Inherited from ElementCollection<T>.)
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetEnumerator
Returns an enumerator that iterates through the collection.
(Inherited from ElementCollection<T>.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Protected methodOnItemAdding
Called before adding an item to the collection.
(Inherited from ElementCollection<T>.)
Protected methodOnItemRemoved
Called before removing an item from the collection.
(Inherited from ElementCollection<T>.)
Public methodRemove
Removes the first occurrence of a specific object from the ICollection<T>.
(Inherited from ElementCollection<T>.)
Public methodToArray
Converts the current collection into a typed array.
(Inherited from ElementCollection<T>.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Extension Methods
See Also