public IEnumerable <Aspect> GetDeclarations(MethodInfo method)
        {
            var declarations = _attributeDeclarationProvider.GetDeclaration(method).ToList();

            var property = method.GetRelatedPropertyInfo();

            if (property != null)
            {
                declarations.AddRange(_attributeDeclarationProvider.GetDeclaration(property));
            }

            var event_ = method.GetRelatedEventInfo();

            if (event_ != null)
            {
                declarations.AddRange(_attributeDeclarationProvider.GetDeclaration(event_));
            }

            return(declarations);
        }
Exemplo n.º 2
0
 public IEnumerable <Aspect> GetDeclarations(Type type)
 {
     return(_attributeDeclarationProvider.GetDeclaration(type));
 }