Click here to Skip to main content
15,888,733 members
Home / Discussions / C#
   

C#

 
AnswerRe: 'System.Windows.Controls.Image' does not contain a definition for 'FromFile' Pin
Deflinek4-Sep-14 2:44
Deflinek4-Sep-14 2:44 
GeneralRe: 'System.Windows.Controls.Image' does not contain a definition for 'FromFile' Pin
jasonalien4-Sep-14 2:47
jasonalien4-Sep-14 2:47 
GeneralRe: 'System.Windows.Controls.Image' does not contain a definition for 'FromFile' Pin
Deflinek4-Sep-14 2:54
Deflinek4-Sep-14 2:54 
AnswerRe: 'System.Windows.Controls.Image' does not contain a definition for 'FromFile' Pin
Swinkaran4-Sep-14 19:58
professionalSwinkaran4-Sep-14 19:58 
Questionhow to transfer the values of textboxes from one form to another form in datagridviw control without using database Pin
Member 110574883-Sep-14 18:56
Member 110574883-Sep-14 18:56 
AnswerRe: how to transfer the values of textboxes from one form to another form in datagridviw control without using database Pin
Ganesh KP3-Sep-14 19:19
professionalGanesh KP3-Sep-14 19:19 
AnswerRe: how to transfer the values of textboxes from one form to another form in datagridviw control without using database Pin
Pankaj Bhandari085-Sep-14 1:52
Pankaj Bhandari085-Sep-14 1:52 
QuestionNeed help with Expression Trees... Pin
SledgeHammer013-Sep-14 18:44
SledgeHammer013-Sep-14 18:44 
I have a random class (determined at runtime)... this class constructor may or may not have parameters (determined via a lookup table). I need to new up said class as fast as humanly possible. So I went with expression trees. Since I don't know how many parameters the constructor will have (until I'm building the expression tree), my concept is to get the parameters into an object[] and then type cast o[0], o[1], o[2], etc. to the proper types. The expression comes out as:

.Lambda #Lambda1<System.Func`2[System.Object[],System.Object]>(System.Object[] $var1) {
.New ConsoleApplication1.Test(
(System.String)$var1[0],
(System.Int32)$var1[1],
(System.Drawing.Color)$var1[2])
}

So I'm getting a Func<object[], object>... seems kind of slow (relatively) to be honest... is compiling it to a lambda causing overhead? or is there some other overhead I'm not seeing? Since the params can be any type, I don't know how I could store them in anything else other then an object[]. Seems like I might be generating a method vs. doing it inline?

Any ideas? This code is called *a lot*, so every ms counts Smile | :) .
QuestionRe: Need help with Expression Trees... Pin
Richard Deeming4-Sep-14 1:23
mveRichard Deeming4-Sep-14 1:23 
AnswerRe: Need help with Expression Trees... Pin
SledgeHammer014-Sep-14 4:58
SledgeHammer014-Sep-14 4:58 
AnswerRe: Need help with Expression Trees... Pin
SledgeHammer014-Sep-14 8:30
SledgeHammer014-Sep-14 8:30 
GeneralRe: Need help with Expression Trees... Pin
Richard Deeming4-Sep-14 8:39
mveRichard Deeming4-Sep-14 8:39 
GeneralRe: Need help with Expression Trees... Pin
SledgeHammer014-Sep-14 10:19
SledgeHammer014-Sep-14 10:19 
AnswerRe: Need help with Expression Trees... Pin
Eddy Vluggen4-Sep-14 5:14
professionalEddy Vluggen4-Sep-14 5:14 
GeneralRe: Need help with Expression Trees... Pin
SledgeHammer014-Sep-14 7:29
SledgeHammer014-Sep-14 7:29 
QuestionFramework Update On a Soution Pin
wonder-FOOL3-Sep-14 10:21
wonder-FOOL3-Sep-14 10:21 
AnswerRe: Framework Update On a Soution Pin
Kornfeld Eliyahu Peter3-Sep-14 10:56
professionalKornfeld Eliyahu Peter3-Sep-14 10:56 
Questionwcf object serialization without datacontract/datamemember attributes strange behavior Pin
impeham3-Sep-14 2:35
impeham3-Sep-14 2:35 
AnswerRe: wcf object serialization without datacontract/datamemember attributes strange behavior Pin
Gerry Schmitz3-Sep-14 10:24
mveGerry Schmitz3-Sep-14 10:24 
Questionviewing photo from MySQL Pin
Jassim Rahma3-Sep-14 0:58
Jassim Rahma3-Sep-14 0:58 
QuestionRe: viewing photo from MySQL Pin
Richard MacCutchan3-Sep-14 1:30
mveRichard MacCutchan3-Sep-14 1:30 
AnswerRe: viewing photo from MySQL Pin
Jassim Rahma3-Sep-14 1:41
Jassim Rahma3-Sep-14 1:41 
GeneralRe: viewing photo from MySQL Pin
Richard Deeming3-Sep-14 1:42
mveRichard Deeming3-Sep-14 1:42 
GeneralRe: viewing photo from MySQL Pin
Jassim Rahma3-Sep-14 1:46
Jassim Rahma3-Sep-14 1:46 
GeneralRe: viewing photo from MySQL Pin
Jassim Rahma3-Sep-14 1:48
Jassim Rahma3-Sep-14 1:48 

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.