コード例 #1
0
 /// <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));
 }
コード例 #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);
 }