Click here to Skip to main content
15,925,602 members
Home / Discussions / C#
   

C#

 
GeneralDynamic returns Pin
sanke_s21-May-09 22:48
sanke_s21-May-09 22:48 
GeneralRe: Dynamic returns Pin
musefan21-May-09 22:56
musefan21-May-09 22:56 
GeneralRe: Dynamic returns Pin
sanke_s21-May-09 23:15
sanke_s21-May-09 23:15 
GeneralRe: Dynamic returns Pin
musefan21-May-09 23:29
musefan21-May-09 23:29 
GeneralRe: Dynamic returns Pin
dan!sh 21-May-09 22:57
professional dan!sh 21-May-09 22:57 
GeneralRe: Dynamic returns Pin
Pete O'Hanlon21-May-09 23:04
mvePete O'Hanlon21-May-09 23:04 
GeneralRe: Dynamic returns Pin
sanke_s21-May-09 23:26
sanke_s21-May-09 23:26 
GeneralRe: Dynamic returns Pin
DaveyM6921-May-09 23:06
professionalDaveyM6921-May-09 23:06 
No, I don't think you can. You can return an object of course and do your thing with that afterwards.

You can return a generic T, but without generic type constraints you might be limited to what you can actually do in your method.
static T TMethod<T>(T value)
{
    // do stuff with T...
    // ...

    return value;
}


Dave
BTW, in software, hope and pray is not a viable strategy. (Luc Pattyn)
Visual Basic is not used by normal people so we're not covering it here. (Uncyclopedia)
Why are you using VB6? Do you hate yourself? (Christian Graus)

GeneralRe: Dynamic returns Pin
0x3c022-May-09 0:41
0x3c022-May-09 0:41 
QuestionHow to find Internet Explorer target folder using c#? Pin
svt gdwl21-May-09 22:30
svt gdwl21-May-09 22:30 
AnswerRe: How to find Internet Explorer target folder using c#? Pin
musefan21-May-09 22:50
musefan21-May-09 22:50 
Question"Board": Member names cannot be the same as thier enclosing types? Pin
dinbrca3521-May-09 22:02
dinbrca3521-May-09 22:02 
AnswerRe: "Board": Member names cannot be the same as thier enclosing types? Pin
musefan21-May-09 22:09
musefan21-May-09 22:09 
QuestionHow to get SMS notification from mobile connected to a PC by data cable? Pin
Md. Ali Naser Khan21-May-09 21:33
Md. Ali Naser Khan21-May-09 21:33 
AnswerRe: How to get SMS notification from mobile connected to a PC by data cable? Pin
Giorgi Dalakishvili21-May-09 22:03
mentorGiorgi Dalakishvili21-May-09 22:03 
GeneralRe: How to get SMS notification from mobile connected to a PC by data cable? Pin
Md. Ali Naser Khan22-May-09 2:54
Md. Ali Naser Khan22-May-09 2:54 
AnswerRe: How to get SMS notification from mobile connected to a PC by data cable? Pin
Mycroft Holmes21-May-09 22:09
professionalMycroft Holmes21-May-09 22:09 
Questionhow to create sub menu item by coding Pin
xingselex21-May-09 21:06
xingselex21-May-09 21:06 
AnswerRe: how to create sub menu item by coding Pin
0x3c021-May-09 21:30
0x3c021-May-09 21:30 
GeneralRe: how to create sub menu item by coding Pin
xingselex21-May-09 21:53
xingselex21-May-09 21:53 
GeneralRe: how to create sub menu item by coding Pin
musefan21-May-09 22:29
musefan21-May-09 22:29 
AnswerRe: how to create sub menu item by coding Pin
padmanabhan N21-May-09 23:32
padmanabhan N21-May-09 23:32 
Questionsending sms using C# windows application Pin
Nath21-May-09 20:37
Nath21-May-09 20:37 
AnswerRe: sending sms using C# windows application Pin
0x3c021-May-09 21:28
0x3c021-May-09 21:28 
GeneralRe: sending sms using C# windows application Pin
Nath21-May-09 21:35
Nath21-May-09 21:35 

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.