No announcements
Found 2496235 threads
-
0 Votes
Reference parameters must be initialized before they are passed to the method - really?
So I say again, parameters that are modified by the 'ref' keyword ARE NOT required to first having been initialized before being 'passed' ...Unanswered | 4 Replies | 290 Views | Created by Anonymous - Tuesday, May 20, 2014 11:13 AM | Last reply by Anonymous - Wednesday, May 21, 2014 2:39 AM -
1 Votes
Passing reference parameter to return the value?
I don't really understand setting up the function with this reference parameter to return a value when answer is one of the parameters being passed.Answered | 3 Replies | 3587 Views | Created by oldyeller - Saturday, October 31, 2009 5:35 AM | Last reply by ildjarn - Saturday, October 31, 2009 5:57 PM -
3 Votes
Passing a method reference - delegate vs method reference?
RE my point about passing method call in as a parameter, if the method signature has string s, for example, then the results of the ...Answered | 15 Replies | 2913 Views | Created by GSS1 - Thursday, February 25, 2010 9:46 PM | Last reply by Reed Copsey, Jr - Saturday, February 27, 2010 5:21 PM -
0 Votes
Why it is necessery to initialize local variable if it is passed as "ref" to a method ?
"Value-type variables are not initialized to null and C# doesn't think they have been initialized to anything.Answered | 19 Replies | 4952 Views | Created by bootstrap1 - Wednesday, November 3, 2010 1:28 AM | Last reply by Mike Dos Zhang - Friday, November 5, 2010 7:40 AM -
0 Votes
Passing object mCB to a Method of object mCA: Is this passing by reference?
There are certainly times when it is convenient to pass a pointer parameter that is sometimes NULL.Answered | 9 Replies | 2469 Views | Created by Mel_3 - Saturday, May 12, 2012 4:05 PM | Last reply by Mel_3 - Monday, May 14, 2012 8:44 PM -
4 Votes
How to pass an instance of a class (an object) to a method by value and not by reference?
But I can still treat structs as classes just by adding a ref keyword before the struct parameter.Answered | 7 Replies | 3683 Views | Created by ddlyProgrammer - Monday, January 16, 2012 2:08 PM | Last reply by ddlyProgrammer - Thursday, January 19, 2012 12:35 PM -
2 Votes
Impact on the performance when passing parameters to a method
When you have a group of parameters that are commonly passed together to a number of methods (not just one), then you should replace them with an object.Answered | 5 Replies | 5253 Views | Created by Clement Edwin - Friday, February 26, 2010 9:50 AM | Last reply by Stephen Cleary - Friday, February 26, 2010 1:40 PM -
0 Votes
passing parameters to callback method
Typically, if you're using Task<T>, you wouldn't use callback methods.Answered | 1 Replies | 3298 Views | Created by shlomihassan - Tuesday, August 7, 2012 9:53 PM | Last reply by Reed Copsey, Jr - Wednesday, August 8, 2012 5:12 PM -
0 Votes
Pass a method as parameter, with diferent input parameters
3. he use this class as input type for his method, the way he define his delegate and call his method, within this method, and ...Answered | 6 Replies | 1957 Views | Created by deadManN - Friday, December 30, 2011 10:39 AM | Last reply by deadManN - Friday, January 6, 2012 8:06 AM -
0 Votes
compilation error trying to pass address to structure into method
svt44cobra66 wrote: I have a method in update data called update_data2 that I am trying to pass the same data into and ...Answered | 9 Replies | 2219 Views | Created by svt44cobra66 - Friday, January 27, 2012 5:24 PM | Last reply by svt44cobra66 - Sunday, February 5, 2012 5:04 PM -
1 Votes
Passing parameters to a method
So you could just have a single method that takes an IList, and call it by passing in the Combobox.Items property or ListBox.Items property etc.Answered | 4 Replies | 506 Views | Created by Swildons - Thursday, November 10, 2016 10:26 AM | Last reply by Swildons - Friday, November 11, 2016 10:59 AM -
2 Votes
Enforce compiler warnings as errors on check-in
When writing a checkin policy, you will have a reference to an EnvDTE object, from which you can travers the current solution and its projects.Answered | 3 Replies | 3834 Views | Created by yetanotherusername - Wednesday, September 9, 2009 10:16 AM | Last reply by Nelson Morocho - Wednesday, January 13, 2010 5:01 PM -
0 Votes
Pass reference of form object to a class
Hi HTHP, As far as I know, VBA doesn't support the construct with parameter.Answered | 8 Replies | 881 Views | Created by HTHP - Monday, August 17, 2015 7:41 PM | Last reply by HTHP - Tuesday, September 15, 2015 9:24 PM -
1 Votes
passing arrays as parameters!!
When passing an array as an argument to method, you are really passing a reference to that array.Answered | 5 Replies | 1606 Views | Created by Zaygum - Thursday, August 1, 2013 7:16 PM | Last reply by Eason_H - Monday, August 5, 2013 1:44 AM -
1 Votes
How to pass Null parameter Fill method of tableadapter?
These type of posts are really frustrating.Answered | 5 Replies | 6152 Views | Created by Alam Kanak - Tuesday, January 17, 2012 9:58 AM | Last reply by TrevorWesterdahl - Friday, July 11, 2014 1:44 AM -
0 Votes
Passing a class method as a parameter of another class's method
It has no parameters.Answered | 6 Replies | 2448 Views | Created by HeMingWay11 - Friday, August 17, 2012 12:08 AM | Last reply by Armin Zingler - Tuesday, August 28, 2012 1:39 PM -
5 Votes
Parameters use in init methods
No, there is no other way to pass parameters into form objects.Answered | 3 Replies | 2643 Views | Created by damezumari - Wednesday, July 11, 2012 10:34 PM | Last reply by Olaf Doschke - Friday, July 13, 2012 3:19 PM -
0 Votes
Navigation Parameter pass other method
Hello Aurelien Mota, you can send & retrie parameter by this type : send & retrieve parameter : //pass ...Answered | 2 Replies | 850 Views | Created by Aurelien Mota - Sunday, November 17, 2013 4:17 PM | Last reply by Khant Nipun - Monday, November 18, 2013 4:37 AM -
1 Votes
How to passed Reference parameter to WinRT component by C#?
2 clarifications: - You cannot pass reference parameters.Answered | 2 Replies | 3926 Views | Created by istring - Tuesday, October 9, 2012 9:12 AM | Last reply by Marian Luparu - Thursday, November 8, 2012 7:04 PM -
0 Votes
Reference pass speed question
Both take same time, exactly 4 byte or 8 bytes to push on stack, depending on 32/64-bit compilation.Answered | 4 Replies | 3428 Views | Created by digiplant - Friday, September 24, 2010 12:54 PM | Last reply by DjHenry - Monday, September 27, 2010 1:37 PM - Items 1 to 20 of 2496235 Next ›
No announcements