Re: question on anonymous type
- From: "Ignacio Machin ( .NET/ C# MVP )" <ignacio.machin@xxxxxxxxx>
- Date: Tue, 3 Jun 2008 06:44:28 -0700 (PDT)
On Jun 3, 6:03 am, timor.su...@xxxxxxxxx wrote:
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
Hi,
I would go for the first one, in this case using an anonymous type is
unnecesary, somewhere I read a post that lamented that MS allowed such
a construction.
BTW, the above is not an anonymous type expression
.
- Follow-Ups:
- Re: question on anonymous type
- From: Marc Gravell
- Re: question on anonymous type
- References:
- question on anonymous type
- From: timor . super
- question on anonymous type
- Prev by Date: Re: question on anonymous type
- Next by Date: Re: Downloading files from URL address from within C# Windows Applicat
- Previous by thread: Re: question on anonymous type
- Next by thread: Re: question on anonymous type
- Index(es):