These are two questions (one specific than the other).
If I have a method like this:
Public Function Blah(String Foo) End Function
Is it possible to qualify Foo against another type (for example, I can require Foo to be a String that also implements IInterface?).
I imagine something like this:
Public Function Blah(RandomObject Foo Where RandomObject Is IInterface) End Function
Also, is there a way to qualify the Type parameter?
For example, can I require Type to accept a specific class tree as a parameter?
Public Function Blah(Type t Where Type Of String) End Function
I should mention that I use this in the context of an attribute property, so the class declaration itself cannot be general (this is purely focused on selecting a method parameter, and not on entering the class and its methods).
source share