Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

7
  • thnx for the edit. I just figured it out myself. somehow the using statements were left out even though I had selected them in the code block :) Commented Oct 16, 2012 at 13:46
  • 2
    Also read stackoverflow.com/a/151560/240613: in your code, usings are in the wrong place. Commented Oct 16, 2012 at 14:15
  • 1
    Thnx for the link, it's a great addition. After the answer by @Akshat Jiwan Sharma it became clear that this is indeed the case, but at the same time the question pertains to the default template/settings as provided by MS when you install VS2010. Commented Oct 16, 2012 at 14:17
  • 1
    @MainMa - this is where Visual Studio puts the usings in the default templates, so unless Microsoft updates those sometime soon this question is valid. Commented Oct 16, 2012 at 15:05
  • 1
    @Midhat: True, but I think it's evident what is being asked when one reads the question itself. Feel free to edit the title if you can think of a better one. Commented Oct 16, 2012 at 17:10