In the following examples:
I generally declare variables as close to their use as scoping allows, which in this case would be your second example. Resharper tends to encourage this style as well.