Hello vicmann,
v1. When and why a string defined with or without "@" in front of it?
vstring sSample = "xxxx";
vstring sSample = @"xxxx";
When u need to use "\\" symb in string, for example specify the path.
if u just point "\\" in string u get the single "\", because \ is the service
digit pointed than the next symb should be kept - like \"
If u need to have both \\ in string the easiest way to set @ before your
string (u even can use "\\\" without @ but readability is terrible
v2. Any difference between the following two?
vstring sSample = "";
vstring sSample = string.Empty;
For reading convenience - u not mix it up with sSample = "'" ( ' in the string)
and to have the unique property for the empty string (because maybe in some
..net platforms "" couldn't be the emply string).
v3. Given an Interface IMyInterf and it derived class MyCls.
v>
vIMyInterf MyObj = null;
vMyObj = new MyCls();
v...
vCan someone show an example code of passing this MyObj to a function
vby
vreference?
just use ref keyword in the signature Method(ref MyObl)
---
WBR,
Michael Nemtsev :: blog:
http://spaces.live.com/laflour
"At times one remains faithful to a cause only because its opponents do not
cease to be insipid." (c) Friedrich Nietzsche