Skip to content

Instantly share code, notes, and snippets.

@mat-mcloughlin
Created December 11, 2013 16:33
Show Gist options
  • Select an option

  • Save mat-mcloughlin/7913727 to your computer and use it in GitHub Desktop.

Select an option

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
Copy Markdown

I love this.

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