O
OldButStillLearning
I am trying to use reflection to create and instance of a class. I have done
this before on some other classes that I wanted to create an instance of, but
this particular class requires a "System.Data.DataRow" as one of the
parameters. When I attempt to create a variable with the "Type" with the
following
Type myType = Type.GetType("System.Data.DataRow") this is not picking up the
right values for other things which are required.
I located the System.Data.dll and selected properties on this in
windows explorer attempting to locate the appropriate values for Version,
Culture and PublicKeyToken. Not sure what to provided - maybe not all of
these are required for it to be successful, not sure.
Secondly, is there a way to retreive these within the code so that as the
Framework changes, these will still pick up the appropriate version, culture,
etc.
Thanks in advance for your assistance!!!!
this before on some other classes that I wanted to create an instance of, but
this particular class requires a "System.Data.DataRow" as one of the
parameters. When I attempt to create a variable with the "Type" with the
following
Type myType = Type.GetType("System.Data.DataRow") this is not picking up the
right values for other things which are required.
I located the System.Data.dll and selected properties on this in
windows explorer attempting to locate the appropriate values for Version,
Culture and PublicKeyToken. Not sure what to provided - maybe not all of
these are required for it to be successful, not sure.
Secondly, is there a way to retreive these within the code so that as the
Framework changes, these will still pick up the appropriate version, culture,
etc.
Thanks in advance for your assistance!!!!