Click here to Skip to main content
14,835,793 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
AnswerRe: help on project biulding Pin
Colin Angus Mackay25-Feb-07 4:03
MemberColin Angus Mackay25-Feb-07 4:03 
GeneralRe: help on project biulding Pin
thesad25-Feb-07 6:12
Memberthesad25-Feb-07 6:12 
Question.NET Security Configuration Pin
Ian Uy24-Feb-07 16:17
MemberIan Uy24-Feb-07 16:17 
AnswerRe: .NET Security Configuration Pin
Colin Angus Mackay25-Feb-07 4:02
MemberColin Angus Mackay25-Feb-07 4:02 
QuestionGeneral question about object reference in .NET Framework Pin
Yanshof24-Feb-07 10:07
MemberYanshof24-Feb-07 10:07 
AnswerRe: General question about object reference in .NET Framework Pin
Luc Pattyn24-Feb-07 10:59
sitebuilderLuc Pattyn24-Feb-07 10:59 
GeneralRe: General question about object reference in .NET Framework Pin
Yanshof24-Feb-07 19:19
MemberYanshof24-Feb-07 19:19 
GeneralRe: General question about object reference in .NET Framework Pin
Luc Pattyn24-Feb-07 23:20
sitebuilderLuc Pattyn24-Feb-07 23:20 
Hi,

you dont HAVE to use ref/out, but sometimes you can make good use of it.
BTW the ref/out is part of the argument list's signature used in matching method
calls and methods.

To illustrate its effect:

ArrayList list1=new ArrayList();
ArrayList list2=list1;
list1.Add("a");
list1.Add("b");
show(list1, list2);
do1(list2);
show(list1, list2);
do2(ref list2);
show(list1, list2);
...
public void do1(ArrayList list)     {list.Add("c"); list=new ArrayList(); list.Add("d");}
public void do2(ref ArrayList list) {list.Add("e"); list=new ArrayList(); list.Add("f");}


with appropriate show() method will output
(a,b) (a,b)
(a,b,c) (a,b,c)
(a,b,c,e) (f)

because do2 changes the variable list2, whereas do1 does not.

Smile | :)


Luc Pattyn

[My Articles]

QuestionXML inside WebBrowser control causes large delay when unloading the control Pin
Michael Wolski23-Feb-07 3:38
MemberMichael Wolski23-Feb-07 3:38 
AnswerRe: XML inside WebBrowser control causes large delay when unloading the control Pin
Michael Wolski23-Feb-07 3:54
MemberMichael Wolski23-Feb-07 3:54 
QuestionImplementing some broadcast udp protocol Pin
ohad_2923-Feb-07 3:31
Memberohad_2923-Feb-07 3:31 
QuestionMailMessage.From vs. MailMessage.Sender in .NET 2.0 Pin
SindyatIndy22-Feb-07 6:29
MemberSindyatIndy22-Feb-07 6:29 
AnswerRe: MailMessage.From vs. MailMessage.Sender in .NET 2.0 Pin
Scott Dorman22-Feb-07 18:02
professionalScott Dorman22-Feb-07 18:02 
AnswerRe: Which one is faster? Pin
Pete O'Hanlon21-Feb-07 23:05
mvePete O'Hanlon21-Feb-07 23:05 
GeneralRe: Which one is faster? Pin
Dave Kreskowiak22-Feb-07 3:20
mveDave Kreskowiak22-Feb-07 3:20 
GeneralRe: Which one is faster? Pin
Pete O'Hanlon22-Feb-07 3:43
mvePete O'Hanlon22-Feb-07 3:43 
GeneralRe: Which one is faster? Pin
Scott Dorman22-Feb-07 18:04
professionalScott Dorman22-Feb-07 18:04 
QuestionConverting from Base Class to Child Class Pin
bertvan21-Feb-07 21:43
Memberbertvan21-Feb-07 21:43 
AnswerRe: Converting from Base Class to Child Class [modified] Pin
Colin Angus Mackay21-Feb-07 22:16
MemberColin Angus Mackay21-Feb-07 22:16 
GeneralRe: Converting from Base Class to Child Class Pin
bertvan21-Feb-07 22:40
Memberbertvan21-Feb-07 22:40 
GeneralRe: Converting from Base Class to Child Class Pin
Colin Angus Mackay21-Feb-07 23:51
MemberColin Angus Mackay21-Feb-07 23:51 
Questionif there any disadvantageof using dot net 2.0 and 1.1on same server Pin
JayPrakash Kulkarni21-Feb-07 19:56
MemberJayPrakash Kulkarni21-Feb-07 19:56 
AnswerRe: if there any disadvantageof using dot net 2.0 and 1.1on same server Pin
Pete O'Hanlon21-Feb-07 23:02
mvePete O'Hanlon21-Feb-07 23:02 
Questionrun .net project on os without .net framework Pin
shwetas20-Feb-07 23:42
Membershwetas20-Feb-07 23:42 
AnswerRe: run .net project on os without .net framework Pin
__DanC__21-Feb-07 0:49
Member__DanC__21-Feb-07 0:49 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.