question on anonymous type
- From: timor.super@xxxxxxxxx
- Date: Tue, 3 Jun 2008 03:03:32 -0700 (PDT)
Hi all,
I have a question on anonymous type
I can write :
using (StreamWriter writer = new StreamWriter(...))
and I can write this too :
using (var writer = new StreamWriter(...))
What is the best ? Which option should I choose ?
The first seems to be more readable ...
Thanks in advance for your answer
.
- Follow-Ups:
- Re: question on anonymous type
- From: Arne Vajhøj
- Re: question on anonymous type
- From: Ignacio Machin ( .NET/ C# MVP )
- Re: question on anonymous type
- From: Jon Skeet [C# MVP]
- Re: question on anonymous type
- From: Peter Morris
- Re: question on anonymous type
- From: Martin Bonner
- Re: question on anonymous type
- Prev by Date: Re: Checking for valid datetime
- Next by Date: Re: question on anonymous type
- Previous by thread: xpath problem
- Next by thread: Re: question on anonymous type
- Index(es):