Sean Ferguson

Software Design EngineerExchange Hosted Services Archive

August, 2008

Posts
  • Sean Ferguson

    Variable scope in C#

    • 7 Comments
    See anything wrong with the code below? I didn't until Visual Studio gave me a nice squiggly red line indicating something was wrong. IList aList = new List (); foreach (A a in aList) { // Do something } A a = new A(); This is the error:...
Page 1 of 1 (1 items)