由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
DotNet版 - M$真会骗钱
相关主题
MS will have new certificateASP.NET Credit Card Transaction.
如果想搞个证书,大家推荐哪个呢?Question about struct
牛人指点一下,这几个考试的顺序怎么来比较合适C#.Net Funsdamentals (6)
ASP.NET和J2EE哪个更成熟?VS2005 SP1 is out
.Net IDE - 总结网址请教VC++.net前景
Summary: 2 个web form之间如何传参数?[合集] How to tell if a connection is http or https?
C# interview questionC#的new在method declaration里有和没有有啥区别么
那位大侠能介绍一下 property in c# class的使用经验JavaScript is Assembly Language for the Web
相关话题的讨论汇总
话题: variable话题: var话题: why话题: introduce话题: type
进入DotNet版参与讨论
1 (共1页)
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.

1 (共1页)
进入DotNet版参与讨论
相关主题
JavaScript is Assembly Language for the Web.Net IDE - 总结网址
asp.net的webform和MVC有什么不同Summary: 2 个web form之间如何传参数?
vb.net如何显示缩小后窗口消失的程序(已解决)C# interview question
新手请教:如何理解generic interface can be an retrun type那位大侠能介绍一下 property in c# class的使用经验
MS will have new certificateASP.NET Credit Card Transaction.
如果想搞个证书,大家推荐哪个呢?Question about struct
牛人指点一下,这几个考试的顺序怎么来比较合适C#.Net Funsdamentals (6)
ASP.NET和J2EE哪个更成熟?VS2005 SP1 is out
相关话题的讨论汇总
话题: variable话题: var话题: why话题: introduce话题: type