According to this stackoverflow answer you can't apply a custom attribute to an anonymous method.
What is AttributeTargets.Delegate
then for?
Is it for another .NET language?
According to this stackoverflow answer you can't apply a custom attribute to an anonymous method.
What is AttributeTargets.Delegate
then for?
Is it for another .NET language?
Anonymous methods are not delegates. Delegates are declarations of method types.
For example: