title: Postsharp: Access already applied aspects from an Aspect
body: <p>I have created a small hierarchy of Aspects. 
  Example:</p>
  
  <pre><code>public abstract class MyBaseAspectAttribute : Aspect, IAspectProvider
  {
  ...
      public IEnumerable&lt;AspectInstance&gt; ProvideAspects( object targetElement )
      {
      }
  ...
  }
  </code></pre>
  
  <p>I was wondering if there is any way, inside the ProvideAspects, to find out if and what other Aspects are already applied to the targetElement - and get a reference to the Aspect instance.</p>
  
  <p>Something like  </p>
  
  <pre><code>PostShart.GetAspects(targetElement).OfType&lt;MyBaseAspectAttribute&gt;();
  </code></pre>
  
  <p>(my intention: check if a certain aspect is already added and if yes, then modify it)</p>
  
  <p>PS: I did solve my problem in another way, but I if this would be possible it would make for a more elegant and efficient solution than mine. </p>