由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
DotNet版 - A question seeking answers
相关主题
恭喜away担任BFC# interview question
recommended ASP .NET books?C#中的Memory控制
[合集] MCAD等CERTIFICATE有助于找工作么?Re: 请问DATAGRID里的BOUNDCOLUMN HEADER可以又有TE
Need Help: a very wierd Managed C++ interop problemA quick question about Access..
[合集] can not run ASP by IIS 5.1 in WIN XP (转载)Anyone knows a simple solution to this in vb.net?
麻烦大家帮忙看看:cannot find dependencyLinq to entity framework: what happens if i modified DB schema in SSMS ?
vb.net v.s. C#answer - Re: .NET 新手 请教两个弱问题
String::Format doesn't take integer type params请教detailsview和radiobutton的问题。(Asp.net C#)
相关话题的讨论汇总
话题: answers话题: seeking话题: question话题: params话题: out
进入DotNet版参与讨论
1 (共1页)
s*******k
发帖数: 20
1
In c#, what type of params should I use
when the purpose is to pass values
out of the method?
out? or ref?
Pros and cons respectively using the modifiers?
Thanks.
d*r
发帖数: 238
2

out - single direction
ref - both direction

【在 s*******k 的大作中提到】
: In c#, what type of params should I use
: when the purpose is to pass values
: out of the method?
: out? or ref?
: Pros and cons respectively using the modifiers?
: Thanks.

s*******k
发帖数: 20
3
hehe, thanks 大米
That means they behave the same as outbound params, right?
大米, how long have you been on C#? if u don't mind.

【在 d*r 的大作中提到】
:
: out - single direction
: ref - both direction

k****i
发帖数: 1072
4
out var doesn't need to be initialized in the caller but ref var does

【在 s*******k 的大作中提到】
: In c#, what type of params should I use
: when the purpose is to pass values
: out of the method?
: out? or ref?
: Pros and cons respectively using the modifiers?
: Thanks.

s*******k
发帖数: 20
5
Thanks kongzi.

【在 k****i 的大作中提到】
: out var doesn't need to be initialized in the caller but ref var does
1 (共1页)
进入DotNet版参与讨论
相关主题
请教detailsview和radiobutton的问题。(Asp.net C#)[合集] can not run ASP by IIS 5.1 in WIN XP (转载)
difference between property and indexer麻烦大家帮忙看看:cannot find dependency
VS 2005 Pro Installaionvb.net v.s. C#
mvc pros and consString::Format doesn't take integer type params
恭喜away担任BFC# interview question
recommended ASP .NET books?C#中的Memory控制
[合集] MCAD等CERTIFICATE有助于找工作么?Re: 请问DATAGRID里的BOUNDCOLUMN HEADER可以又有TE
Need Help: a very wierd Managed C++ interop problemA quick question about Access..
相关话题的讨论汇总
话题: answers话题: seeking话题: question话题: params话题: out