Skip to content

Instantly share code, notes, and snippets.

@SLaks
Last active August 29, 2015 13:56
Show Gist options
  • Save SLaks/9097967 to your computer and use it in GitHub Desktop.
Save SLaks/9097967 to your computer and use it in GitHub Desktop.
VS Bug
using System;
class C {
[MyAttribute]
static void Main(string[] args) {
Console.WriteLine("In Main()");
Console.ReadKey();
}
}
class MyAttribute : Attribute {
public MyAttribute() { Console.WriteLine("In MyAttribute ctor"); }
}
// What is the output when run under the VS debugger?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment