Re: How to set local variables automatically?
- From: Jon Skeet [C# MVP] <skeet@xxxxxxxxx>
- Date: Wed, 13 Apr 2005 21:38:20 +0100
Iwan Petrow <xxxxyz@xxxxxx> wrote:
> But I want this happens automatically. When I write "int i;" i have to
> be 0.
You can't, and I can't see any good reason why you'd want to.
Just declare your variables at the point of first use - that covers
almost all situations, IME, and makes your code clearer.
--
Jon Skeet - <skeet@xxxxxxxxx>
http://www.pobox.com/~skeet
If replying to the group, please do not mail me too
.
- References:
- How to set local variables automatically?
- From: Iwan Petrow
- Re: How to set local variables automatically?
- From: Michael C
- Re: How to set local variables automatically?
- From: Iwan Petrow
- How to set local variables automatically?
- Prev by Date: Re: Disposing by reflection?
- Next by Date: Re: Socket Server to Socket Client..Client function not working when called from Server...
- Previous by thread: Re: How to set local variables automatically?
- Next by thread: PreparedStatements?
- Index(es):
Relevant Pages
|