/// <summary>
 /// Gets typed attributes.
 /// </summary>
 /// <typeparam name="TAttribute">The type of attribute to get.</typeparam>
 /// <param name="inherit">Indicates that it may be inherited.</param>
 /// <returns>An array of typed attributes.</returns>
 public TAttribute[] GetAttributes <TAttribute>(bool inherit)
 {
     return(_Acessor.GetAttributes <TAttribute>(inherit));
 }
Example #2
0
 protected override bool CreateAspectFor(ClassAcessor acessor, out CompositeAnnotationMember <TMemberAspect> member)
 {
     member = new CompositeAnnotationMember <TMemberAspect>(acessor, acessor.GetAttributes <TMemberAspect>(true));
     return(member.Annotations.Count > 0);
 }