Private Sub GenericMethod(Of T As MyType {New})(parameter1 As Integer) does not work. ???
I am not 100% sure about this, but try including your type into the set and separating the types by commas.Private Sub GenericMethod(Of T As {MyType, New})(parameter1 As Integer)
Note: Only a member of this blog may post a comment.
Private Sub GenericMethod(Of T As MyType {New})(parameter1 As Integer) does not work. ???
ReplyDeleteI am not 100% sure about this, but try including your type into the set and separating the types by commas.
DeletePrivate Sub GenericMethod(Of T As {MyType, New})(parameter1 As Integer)