Skip to content

Instantly share code, notes, and snippets.

@mat-mcloughlin
Created December 11, 2013 16:33
Show Gist options
  • Star 4 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mat-mcloughlin/7913727 to your computer and use it in GitHub Desktop.
Save mat-mcloughlin/7913727 to your computer and use it in GitHub Desktop.
This code is bad and you should feel bad
[AttributeUsage(System.AttributeTargets.All, AllowMultiple = true, Inherited = true)]
public class ಠ_ಠAttribute : Attribute
{
public ILog Log { get; set; }
public ಠ_ಠAttribute()
{
Log.Info("This code is bad and you should feel bad");
}
}
[ಠ_ಠ]
public class SomeClass
{
}
@reidperyam
Copy link

I love this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment