Re: Why does this work?
- From: "Herfried K. Wagner [MVP]" <hirf-spam-me-here@xxxxxx>
- Date: Wed, 29 Oct 2008 01:21:58 +0100
"James Hahn" <jhahn@xxxxxxxxx> schrieb:
No. The difference between what the code is doing and what the compiler is doing is the reason for the warning.
Exactly. This is especially important if the shared member is accessed for an object returned by an expression, which may change the application's state, but the expression gets removed by the compiler:
\\\
Dim c As Color = Foo.DoSomething().AliceBlue
///
--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>
.
- References:
- Why does this work?
- From: Bob Altman
- Re: Why does this work?
- From: Scott M.
- Re: Why does this work?
- From: James Hahn
- Re: Why does this work?
- From: Family Tree Mike
- Re: Why does this work?
- From: James Hahn
- Why does this work?
- Prev by Date: Re: resize Form/controls/fonts dynamically to fit diff screen reso
- Next by Date: Re: Why does this work?
- Previous by thread: Re: Why does this work?
- Next by thread: Re: Why does this work?
- Index(es):
Relevant Pages
|