I have an interface called IBaselineControl. Now I'm trying to write a procedure which requires, as an argument, a Control which implements the IBaselineControl interface. However, I don't know the syntax for this.
VB.Net allows us to require multiple interface implementations along with class inheritance when writing constraints for generic types. The syntax used there suggests that something like this might work:
Unfortunately, that syntax doesn't work and I'm unable to find any syntax which does. Can anyone provide advice?
-TC
VB.Net allows us to require multiple interface implementations along with class inheritance when writing constraints for generic types. The syntax used there suggests that something like this might work:
Public Sub Test(X As {Control, IBaselineControl})
Unfortunately, that syntax doesn't work and I'm unable to find any syntax which does. Can anyone provide advice?
-TC