Click here to Skip to main content
15,905,563 members
Home / Discussions / C#
   

C#

 
QuestionPassing C# exception through COM to get _com_error Pin
Green Fuze11-Jul-08 22:57
Green Fuze11-Jul-08 22:57 
Questiondraw address dynamically Pin
ham rez11-Jul-08 22:41
ham rez11-Jul-08 22:41 
AnswerRe: draw address dynamically Pin
Abhijit Jana11-Jul-08 23:25
professionalAbhijit Jana11-Jul-08 23:25 
QuestionNewbie question: single/multiple method arguments Pin
Metal7611-Jul-08 22:34
Metal7611-Jul-08 22:34 
AnswerRe: Newbie question: single/multiple method arguments Pin
Metal7611-Jul-08 22:41
Metal7611-Jul-08 22:41 
GeneralRe: Newbie question: single/multiple method arguments Pin
subai12-Jul-08 1:38
subai12-Jul-08 1:38 
GeneralRe: Newbie question: single/multiple method arguments Pin
PIEBALDconsult12-Jul-08 2:58
mvePIEBALDconsult12-Jul-08 2:58 
GeneralRe: Newbie question: single/multiple method arguments Pin
Guffa12-Jul-08 11:19
Guffa12-Jul-08 11:19 
Metal76 wrote:
It was a stupid question, indeed!


Not at all, the solution is not very obvious. It might not be the entire solution, either.

You may want to overload that method with one that takes a single int, that way you can call it without having the compiler generate code that creates an array object every time (for the params array). Perhaps also add overloads that takes two and three parameters. The string.Concat method is overloaded in that way, for example.

Another overload that you may want to add is one that takes an IEnumerable<int>, that will work for an int[], but also for other collections, like a List<int>.

Despite everything, the person most likely to be fooling you next is yourself.

Questionhow to make the backgroundworker run untill the threads are completed Pin
Technobizz11-Jul-08 22:32
Technobizz11-Jul-08 22:32 
AnswerRe: how to make the backgroundworker run untill the threads are completed Pin
Luc Pattyn12-Jul-08 0:56
sitebuilderLuc Pattyn12-Jul-08 0:56 
AnswerRe: how to make the backgroundworker run untill the threads are completed Pin
Gareth H12-Jul-08 1:32
Gareth H12-Jul-08 1:32 
Questionhow to set values from datagrid to string variable Pin
Technobizz11-Jul-08 22:22
Technobizz11-Jul-08 22:22 
QuestionHow to read a streaming data and display on the browser? Pls help [modified] Pin
MyRunner2311-Jul-08 21:14
MyRunner2311-Jul-08 21:14 
AnswerRe: How to read a streaming data and display on the browser? Pls help Pin
MyRunner2312-Jul-08 15:52
MyRunner2312-Jul-08 15:52 
QuestionProblem with MarshalByRefObject Pin
Przemyslaw Celej11-Jul-08 20:51
Przemyslaw Celej11-Jul-08 20:51 
Questionretrieve photos from MOSS2007? Pin
kju00211-Jul-08 20:16
kju00211-Jul-08 20:16 
QuestionHow to call other application from one application on button click-VC++ in .NET Pin
paresh_sarjani11-Jul-08 19:40
paresh_sarjani11-Jul-08 19:40 
AnswerRe: How to call other application from one application on button click-VC++ in .NET Pin
Elroy Dsilva11-Jul-08 21:35
Elroy Dsilva11-Jul-08 21:35 
GeneralRe: How to call other application from one application on button click-VC++ in .NET Pin
paresh_sarjani11-Jul-08 21:40
paresh_sarjani11-Jul-08 21:40 
GeneralRe: How to call other application from one application on button click-VC++ in .NET Pin
Elroy Dsilva11-Jul-08 21:45
Elroy Dsilva11-Jul-08 21:45 
GeneralRe: How to call other application from one application on button click-VC++ in .NET Pin
paresh_sarjani12-Jul-08 18:12
paresh_sarjani12-Jul-08 18:12 
GeneralRe: How to call other application from one application on button click-VC++ in .NET Pin
paresh_sarjani12-Jul-08 18:41
paresh_sarjani12-Jul-08 18:41 
QuestionProblem With Rich Text Box Pin
D i x y11-Jul-08 19:24
D i x y11-Jul-08 19:24 
AnswerRe: Problem With Rich Text Box Pin
Giorgi Dalakishvili12-Jul-08 0:55
mentorGiorgi Dalakishvili12-Jul-08 0:55 
AnswerRe: Problem With Rich Text Box Pin
Mohammad Dayyan12-Jul-08 10:31
Mohammad Dayyan12-Jul-08 10:31 

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.