That's not valid C# code. You can't specify actual value types as generic constraints. Here is the relevant documentation for C#:

http://msdn.microsoft.com/en-us/library/bb384067.aspx
http://msdn.microsoft.com/en-us/library/d5x73970.aspx

The VB equivalent of:
csharp Code:
  1. T SomeFunction<T>() where T : Type1, Type2
is:
vb.net Code:
  1. Function SomeFunction(Of T As {Type1, Type2})() As T