No. The attribute is never executed. You will need to build a construct that looks for the attribute and does something if it finds one.
AoP (aspect-oriented programming) in .NET is only possible using third-party software such as PostSharp.
source
share