Click here to Skip to main content
15,893,663 members
Home / Discussions / C#
   

C#

 
QuestionCheck clipboard for a URL Pin
Jassim Rahma23-Mar-10 12:33
Jassim Rahma23-Mar-10 12:33 
AnswerRe: Check clipboard for a URL Pin
AspDotNetDev23-Mar-10 12:59
protectorAspDotNetDev23-Mar-10 12:59 
AnswerRe: Check clipboard for a URL Pin
Eslam Afifi23-Mar-10 13:02
Eslam Afifi23-Mar-10 13:02 
Questionref typecast between form derived from Form class and Form class Pin
Karismatic23-Mar-10 9:47
Karismatic23-Mar-10 9:47 
AnswerRe: ref typecast between form derived from Form class and Form class Pin
DaveyM6923-Mar-10 10:19
professionalDaveyM6923-Mar-10 10:19 
AnswerRe: ref typecast between form derived from Form class and Form class Pin
Tim Weckx23-Mar-10 10:32
Tim Weckx23-Mar-10 10:32 
GeneralRe: ref typecast between form derived from Form class and Form class Pin
Ian Shlasko23-Mar-10 11:26
Ian Shlasko23-Mar-10 11:26 
GeneralRe: ref typecast between form derived from Form class and Form class Pin
AspDotNetDev23-Mar-10 11:35
protectorAspDotNetDev23-Mar-10 11:35 
Ian Shlasko wrote:
except that "out" only works in one direction, while "ref" both provides a value and allows it to be changed.


Not quite. The only difference between ref and out is that out ensures the value will be set before you return from the method. When ref is used, it does not ensure the variable will be set... it merely allows it. This allows for one to do something like this:
C#
// Notice myForm was not initialized.
Form myForm;
SomeMethod(out myForm);
// This will work.
myForm.ShowDialog();

Notice how this differs from ref:
C#
// Notice myForm was not initialized.
Form myForm;
SomeMethod(ref myForm);
// This will NOT work (compile time error), because myForm may not have been initialized.
myForm.ShowDialog();


GeneralRe: ref typecast between form derived from Form class and Form class Pin
Ian Shlasko23-Mar-10 12:00
Ian Shlasko23-Mar-10 12:00 
GeneralRe: ref typecast between form derived from Form class and Form class Pin
Karismatic23-Mar-10 17:47
Karismatic23-Mar-10 17:47 
QuestionIntegrating C#/VB.NET with ORKUT Pin
Marco225023-Mar-10 8:48
Marco225023-Mar-10 8:48 
AnswerRe: Integrating C#/VB.NET with ORKUT Pin
Not Active23-Mar-10 9:06
mentorNot Active23-Mar-10 9:06 
GeneralRe: Integrating C#/VB.NET with ORKUT Pin
Marco225023-Mar-10 12:26
Marco225023-Mar-10 12:26 
GeneralRe: Integrating C#/VB.NET with ORKUT Pin
Not Active23-Mar-10 13:33
mentorNot Active23-Mar-10 13:33 
JokeRe: Integrating C#/VB.NET with ORKUT Pin
Mycroft Holmes23-Mar-10 14:57
professionalMycroft Holmes23-Mar-10 14:57 
JokeRe: Integrating C#/VB.NET with ORKUT Pin
DaveyM6923-Mar-10 15:21
professionalDaveyM6923-Mar-10 15:21 
QuestionC# process.start and problem with argument [modified] Pin
sapsaPL23-Mar-10 7:50
sapsaPL23-Mar-10 7:50 
AnswerRe: C# process.start and problem with argument Pin
Ian Shlasko23-Mar-10 8:35
Ian Shlasko23-Mar-10 8:35 
GeneralRe: C# process.start and problem with argument Pin
sapsaPL23-Mar-10 9:49
sapsaPL23-Mar-10 9:49 
GeneralRe: C# process.start and problem with argument Pin
Ian Shlasko23-Mar-10 9:52
Ian Shlasko23-Mar-10 9:52 
GeneralRe: C# process.start and problem with argument [modified] Pin
sapsaPL23-Mar-10 10:15
sapsaPL23-Mar-10 10:15 
GeneralRe: C# process.start and problem with argument Pin
Ian Shlasko23-Mar-10 11:05
Ian Shlasko23-Mar-10 11:05 
AnswerRe: C# process.start and problem with argument Pin
Luc Pattyn23-Mar-10 15:27
sitebuilderLuc Pattyn23-Mar-10 15:27 
GeneralRe: C# process.start and problem with argument Pin
Dave Kreskowiak23-Mar-10 17:54
mveDave Kreskowiak23-Mar-10 17:54 
GeneralRe: C# process.start and problem with argument Pin
Luc Pattyn23-Mar-10 18:17
sitebuilderLuc Pattyn23-Mar-10 18:17 

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.