I've gotten myself in a pickle, and could use the help of a guru...
I have a Journal that records entries for different types:
Journal(Of ParentT)
- Parent could be Customer
, Address
, other classes
The constructor of the Journal requires knowledge of the Type parameter:
Public Sub New(Parent as ParentT)
In my consuming form, I take a Journal in the constructor:
Public Sub DisplayForm(Journal as object)
At this point, I cannot determine what type the Journal is for. I have looked at using Reflection with the MethodInfo
> MakeGenericMethod
, DynamicMethod
, delegates, etc, but haven't found a workable solution.
I am willing to consider most any option at this point...