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

MethodDefDeclarationCollection Class

Collection of methods (MethodDefDeclaration).
Inheritance Hierarchy
System.Object
  PostSharp.Sdk.CodeModel.Collections.ElementCollection
    PostSharp.Sdk.CodeModel.Collections.ElementCollection<MethodDefDeclaration>
      PositionedDeclarationCollection<MethodDefDeclaration>
        NonUniquelyNamedPositionedDeclarationCollection<MethodDefDeclaration>
          PostSharp.Sdk.CodeModel.Collections.MethodDefDeclarationCollection

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 sealed class MethodDefDeclarationCollection : NonUniquelyNamedPositionedDeclarationCollection<MethodDefDeclaration>, 
	IMethodCollection, IEnumerable<IMethod>, IEnumerable

The MethodDefDeclarationCollection 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>.)
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 propertyParent
Gets the parent TypeDefDeclaration of the current collection.
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>.)
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.)
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 methodGetMethod(String, IMethodSignature, BindingOptions)
Finds a method in the type given its name and signature.
Public methodGetMethod(String, IMethodSignature, BindingOptions, GenericMap)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
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
  NameDescription
Public Extension MethodGetMethod
Gets a method of an IMethodCollection given its name and a predicate.
(Defined by MethodCollectionExtensions.)
See Also