by Ross Buggins1. February 2011 18:39In a current project I am dynamically creating an object of a certain type depending on a value read back from the database.
For example, in the data reader results i may have 2 results coming back, the first with a object type value of ‘STS.Person’ and the second with a type of ‘STS.Location’.
The result with a object type of ‘Sts.Person’ should have a C# type created Person() and the result with an object type of ‘Sts.Location’ should create C# type Location(). Person() and Location() both implement the interface ISTSObjects() so ...
[More]6270ad6b-02fe-4623-af5f-f3c01ae935a4|0|.0|96d5b379-7e1d-4dac-a6ba-1e50db561b04
Tags: dynamic, invoke
.net | c#