On May 16, 2:16 am, stork <tband...@storkyak.comwrote:
If I see a piece of code like:
someobject.stringProperty = @mycontrol.Text;
What does the @ do in that case?
Is that a clone operator?
The prefix "@" enables the use of keywords as identifiers, which is
useful when interfacing with other programming languages. The
character @ is not actually part of the identifier, so the identifier
might be seen in other languages as a normal identifier, without the
prefix. An identifier with an @ prefix is called a verbatim
identifier. Use of the @ prefix for identifiers that are not keywords
is permitted, but strongly discouraged as a matter of style.
From MSDN
http://msdn.microsoft.com/en-us/libr...70(VS.71).aspx