I have a generic function in VB.Net. I also have two classes called A and B. Is it possible to allow the generic constraints on my function to allow the Type to be either class A or B? Class A and B do not share any base classes except for object.
I have a generic function in VB.Net. I also have two classes called A
Share
That’s not possible. I suggest you create an interface with the common API of the two classes and make both classes implement that interface.