k****i 发帖数: 1072 | 1 又发信骚扰说从MCSD.NET升级到MCPD: Enterprise Applications Developer只
要考两门. |
m*****a 发帖数: 31 | 2 到M$来吧。把简历给我。考试就免费了
m*********[email protected]
【在 k****i 的大作中提到】 : 又发信骚扰说从MCSD.NET升级到MCPD: Enterprise Applications Developer只 : 要考两门.
|
k****i 发帖数: 1072 | 3 Wow, you should get high score in those company promoting columns during the
year-end review! Hope next time I can tell people I just save some bucks by
switching to M$. :)
Right, I won't upgrade it unless the company will reimburse it. Also, for me
.net 2.0 is more like a transition version which is supposed to be replaced
by a more feature-attractive 3.0 version soon(hopefully).
【在 m*****a 的大作中提到】 : 到M$来吧。把简历给我。考试就免费了 : m*********[email protected]
|
r****y 发帖数: 26819 | 4 2.0 is much better than 1.1, but still not matured. Say, matrix
operation is slow; multimedia support is poor; not cross-platforms.
the
by
me
replaced
【在 k****i 的大作中提到】 : Wow, you should get high score in those company promoting columns during the : year-end review! Hope next time I can tell people I just save some bucks by : switching to M$. :) : Right, I won't upgrade it unless the company will reimburse it. Also, for me : .net 2.0 is more like a transition version which is supposed to be replaced : by a more feature-attractive 3.0 version soon(hopefully).
|
f*****e 发帖数: 5177 | 5 I don't like the "var" variable in 3.0
the
by
me
replaced
【在 k****i 的大作中提到】 : Wow, you should get high score in those company promoting columns during the : year-end review! Hope next time I can tell people I just save some bucks by : switching to M$. :) : Right, I won't upgrade it unless the company will reimburse it. Also, for me : .net 2.0 is more like a transition version which is supposed to be replaced : by a more feature-attractive 3.0 version soon(hopefully).
|
r****y 发帖数: 26819 | 6 The thing is: why introduce it.
This "why" is interesting. I'm curious.
【在 f*****e 的大作中提到】 : I don't like the "var" variable in 3.0 : : the : by : me : replaced
|
f*****e 发帖数: 5177 | 7 to satisfy those stupid vb programers
【在 r****y 的大作中提到】 : The thing is: why introduce it. : This "why" is interesting. I'm curious.
|
r****y 发帖数: 26819 | 8 This is even weird. If want to satisfy, should introduce this in v1.1, and
then gradually get rid of it in v3.0.
【在 f*****e 的大作中提到】 : to satisfy those stupid vb programers
|
k****i 发帖数: 1072 | 9 You must be misunderstood what 'var' really means in C# 3.0 as I was when I
first heard about it. It's not the one that we are familiar with in
javascript and there is a strong reason to introduce it into c# 3.0.
'var' is just a shortcut for variable declaration: we don't have to type all
the words for the variable type on the left hand side, the compiler will
INFER the type of the variable from the right hand side. If you look at the
IL, the variable is still strong typed, which means you can't
【在 f*****e 的大作中提到】 : to satisfy those stupid vb programers
|
r****y 发帖数: 26819 | 10 Good explanation for self-completness.
If so, why not simply declare it as 'Object' instead of 'var'?
I
all
the
another
【在 k****i 的大作中提到】 : You must be misunderstood what 'var' really means in C# 3.0 as I was when I : first heard about it. It's not the one that we are familiar with in : javascript and there is a strong reason to introduce it into c# 3.0. : 'var' is just a shortcut for variable declaration: we don't have to type all : the words for the variable type on the left hand side, the compiler will : INFER the type of the variable from the right hand side. If you look at the : IL, the variable is still strong typed, which means you can't
|
k****i 发帖数: 1072 | 11 Don't forget 'var' is just a declaration shortcut. The same question would
be 'Why not just declare it as 'Object' instead of 'int/double,...''?
And you can read more about anonymous method in c# 3.0 if interested.
【在 r****y 的大作中提到】 : Good explanation for self-completness. : If so, why not simply declare it as 'Object' instead of 'var'? : : I : all : the : another
|
v******n 发帖数: 421 | 12 right, one more example, for query expression like
var q = from c in Custs
where c.age > 20
select new {c.name, c.city};
you don't know / want to know the type of q. let the compile do it for you.
【在 k****i 的大作中提到】 : Don't forget 'var' is just a declaration shortcut. The same question would : be 'Why not just declare it as 'Object' instead of 'int/double,...''? : And you can read more about anonymous method in c# 3.0 if interested.
|