how to reference a dll programmatically

how to reference a dll programmatically

Old forum URL: forums.lhotka.net/forums/t/3581.aspx


dantes1 posted on Sunday, September 23, 2007

id like to reference a dll file programmatically.

id like to create an instance of a certain object from a different dll but id like to reference that dll programmatically.

here is my scenario... id like to select a dll file then load that file so i could get the objects inside it (CSLA objects). then i will select an object... after selecting an object i will select a csv or xls file (whose values are converted to a dataset)... inside those files are values for the properties of the object... and i would like to map the values from the dataset and the properties of the object...

need some help...
 

RockfordLhotka replied on Monday, September 24, 2007

You can look in the client-side data portal to see how to dynamically load an assembly based on name. The data portal uses this technique to load the appropriate proxy object.

You can look in DataMapper for some good reflection code to interact with the properties on an object.

dantes1 replied on Monday, September 24, 2007

how do i get the exact value of a property using reflection that i also set using reflection...???

ajj3085 replied on Tuesday, September 25, 2007

PropertyInfo.SetValue and PropertyInfo.GetValue

Copyright (c) Marimer LLC