Click here to Skip to main content
15,887,822 members
Home / Discussions / C#
   

C#

 
QuestionObject does not match target type Pin
Gilbert Consellado23-Jul-15 2:47
professionalGilbert Consellado23-Jul-15 2:47 
AnswerRe: Object does not match target type Pin
Eddy Vluggen23-Jul-15 3:31
professionalEddy Vluggen23-Jul-15 3:31 
Means that the type which the property expects is different from the type you are putting in there.

You've got a lot going on in a single line of reflection, I'd recommend to break it up in atomic statements; first get the property and put that in a PropInfo. Check if you found it, and then assign a value. Makes debugging a lot easier.

By the looks, I'd say the the boolean and the double are being fed strings.
Bastard Programmer from Hell Suspicious | :suss:
If you can't read my code, try converting it here[^]

GeneralRe: Object does not match target type Pin
Gilbert Consellado23-Jul-15 21:18
professionalGilbert Consellado23-Jul-15 21:18 
Questionc# error/warning code Pin
jamesmc153522-Jul-15 4:01
jamesmc153522-Jul-15 4:01 
AnswerRe: c# error/warning code Pin
CHill6022-Jul-15 4:07
mveCHill6022-Jul-15 4:07 
GeneralRe: c# error/warning code Pin
jamesmc153522-Jul-15 4:10
jamesmc153522-Jul-15 4:10 
GeneralRe: c# error/warning code Pin
CHill6022-Jul-15 4:16
mveCHill6022-Jul-15 4:16 
GeneralRe: c# error/warning code Pin
jamesmc153522-Jul-15 4:18
jamesmc153522-Jul-15 4:18 
GeneralRe: c# error/warning code Pin
CHill6022-Jul-15 4:26
mveCHill6022-Jul-15 4:26 
GeneralRe: c# error/warning code Pin
jamesmc153522-Jul-15 4:29
jamesmc153522-Jul-15 4:29 
GeneralRe: c# error/warning code Pin
CHill6022-Jul-15 4:33
mveCHill6022-Jul-15 4:33 
GeneralRe: c# error/warning code Pin
jamesmc153522-Jul-15 4:40
jamesmc153522-Jul-15 4:40 
AnswerRe: c# error/warning code Pin
Mycroft Holmes22-Jul-15 14:17
professionalMycroft Holmes22-Jul-15 14:17 
Questionsqls help Pin
jamesmc153522-Jul-15 2:30
jamesmc153522-Jul-15 2:30 
AnswerRe: sqls help Pin
Richard MacCutchan22-Jul-15 6:00
mveRichard MacCutchan22-Jul-15 6:00 
AnswerRe: sqls help Pin
Janine_A26-Jul-15 4:58
Janine_A26-Jul-15 4:58 
QuestionDevide huge mainform file Pin
mattlas21-Jul-15 22:17
mattlas21-Jul-15 22:17 
AnswerRe: Devide huge mainform file Pin
OriginalGriff21-Jul-15 22:26
mveOriginalGriff21-Jul-15 22:26 
QuestionCreating Table Adapter using Configuration Wizard with ODBC connection Pin
Member 1176229521-Jul-15 11:46
Member 1176229521-Jul-15 11:46 
AnswerRe: Creating Table Adapter using Configuration Wizard with ODBC connection Pin
Dave Kreskowiak21-Jul-15 14:20
mveDave Kreskowiak21-Jul-15 14:20 
GeneralRe: Creating Table Adapter using Configuration Wizard with ODBC connection Pin
Richard Deeming22-Jul-15 1:12
mveRichard Deeming22-Jul-15 1:12 
GeneralRe: Creating Table Adapter using Configuration Wizard with ODBC connection Pin
Dave Kreskowiak22-Jul-15 2:42
mveDave Kreskowiak22-Jul-15 2:42 
AnswerRe: Creating Table Adapter using Configuration Wizard with ODBC connection Pin
Richard Deeming22-Jul-15 1:13
mveRichard Deeming22-Jul-15 1:13 
GeneralRe: Creating Table Adapter using Configuration Wizard with ODBC connection Pin
Member 1176229522-Jul-15 10:20
Member 1176229522-Jul-15 10:20 
GeneralRe: Creating Table Adapter using Configuration Wizard with ODBC connection Pin
Richard Deeming22-Jul-15 10:27
mveRichard Deeming22-Jul-15 10:27 

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.