Click here to Skip to main content
15,919,422 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
QuestionDistributed computing and multithreaded primers Pin
Member 260377229-Jan-09 18:39
Member 260377229-Jan-09 18:39 
NewsRe: Distributed computing and multithreaded primers Pin
Eddy Vluggen30-Jan-09 11:09
professionalEddy Vluggen30-Jan-09 11:09 
Questiondeleting row Pin
vedharadha29-Jan-09 18:39
vedharadha29-Jan-09 18:39 
AnswerRe: deleting row Pin
vaghelabhavesh30-Jan-09 10:19
vaghelabhavesh30-Jan-09 10:19 
Questioni need java script for validating the empty textbox Pin
vinothtamilarasan29-Jan-09 17:27
vinothtamilarasan29-Jan-09 17:27 
AnswerRe: i need java script for validating the empty textbox Pin
vaghelabhavesh30-Jan-09 10:14
vaghelabhavesh30-Jan-09 10:14 
AnswerRe: i need java script for validating the empty textbox Pin
Ranjit Viswakumar2-Feb-09 11:07
Ranjit Viswakumar2-Feb-09 11:07 
QuestionProblem with reflection Pin
Wilson Carchi A.29-Jan-09 11:19
Wilson Carchi A.29-Jan-09 11:19 
Good day to all ...!!!

Hopefully I can help, I have a problem when working with reflection. I have a dll (called midll.dll) from which all classes have a class named Class1 with their respective attributes. When I try to get an object of this class have to do it by reflection through a Construtor with their parameters (I have stored on the array objects. The array objects called parametersConstructor). Therefore, with the next statement I make this job:
(The parametersConstructor have 2 values)

objObjet2 object = Activator.CreateInstance (assembly.GetType (mydll.Class1 "parametersConstructor); // The assembly is complete


The result is that the object you want to get, and I have no problem, since it does not skip any exceptions to this point.

But the problem is that I realized that one of the attributes of the object is created with one exception. The exception is the following:

atribute4Class1 -> Count = '((System.Collections.Generic.Dictionary <tkey,tvalue>. ValueCollection) (((midll.Class1) (objObjet2)). atribute4Class1)). Count' throw an exception of type 'System.ArgumentException '

Following a little more depth error (it should be noted that there was a lot of where to find the source of the error), what most caught my attention is that at some point I said the following:

Can not find the method of the object instance. (Not specified object that refers)

Personally I thought the problem was with the class, because to say that no method of the object instance, you will most likely have problems with objObjet2 casting that is specified in the original exception.

I thought it was a problem with the class Class1, but discarded, since the same class instance as follows:

Class1 obj = new Class1 ((string) parametersConstructor [0], (string) parametersConstructor [1]);


And the object is created without any problems and even less is not generated except that I mentioned earlier.

Anyone have any idea why this is? Thank you for your help ...!!!

Atte:
Wilson Carchi A.
Software Developer

AnswerRe: Problem with reflection Pin
PIEBALDconsult29-Jan-09 12:30
mvePIEBALDconsult29-Jan-09 12:30 
QuestionCombobox not Responsive Pin
bobbymale7729-Jan-09 2:15
bobbymale7729-Jan-09 2:15 
AnswerRe: Combobox not Responsive Pin
Wendelius29-Jan-09 10:57
mentorWendelius29-Jan-09 10:57 
GeneralRe: Combobox not Responsive Pin
bobbymale7729-Jan-09 11:52
bobbymale7729-Jan-09 11:52 
GeneralRe: Combobox not Responsive Pin
Wendelius29-Jan-09 11:59
mentorWendelius29-Jan-09 11:59 
GeneralRe: Combobox not Responsive Pin
bobbymale7729-Jan-09 12:01
bobbymale7729-Jan-09 12:01 
GeneralRe: Combobox not Responsive Pin
Wendelius29-Jan-09 12:06
mentorWendelius29-Jan-09 12:06 
GeneralRe: Combobox not Responsive Pin
bobbymale7729-Jan-09 12:10
bobbymale7729-Jan-09 12:10 
GeneralRe: Combobox not Responsive Pin
Wendelius29-Jan-09 12:18
mentorWendelius29-Jan-09 12:18 
QuestionExport to MS Word form MS access database or Datagridview Pin
ivo7529-Jan-09 1:28
ivo7529-Jan-09 1:28 
AnswerRe: Export to MS Word form MS access database or Datagridview Pin
Eddy Vluggen29-Jan-09 1:57
professionalEddy Vluggen29-Jan-09 1:57 
GeneralRe: Export to MS Word form MS access database or Datagridview Pin
ivo7529-Jan-09 2:04
ivo7529-Jan-09 2:04 
GeneralRe: Export to MS Word form MS access database or Datagridview Pin
EliottA29-Jan-09 5:20
EliottA29-Jan-09 5:20 
JokeRe: Export to MS Word form MS access database or Datagridview Pin
ivo7529-Jan-09 7:59
ivo7529-Jan-09 7:59 
AnswerRe: Export to MS Word form MS access database or Datagridview Pin
ivo7529-Jan-09 8:03
ivo7529-Jan-09 8:03 
QuestionHarddisk Serial Number using VB.net Pin
VikashGohil28-Jan-09 21:51
VikashGohil28-Jan-09 21:51 
AnswerRe: Harddisk Serial Number using VB.net Pin
«_Superman_»28-Jan-09 22:23
professional«_Superman_»28-Jan-09 22:23 

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.