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:is:csharp Code:
T SomeFunction<T>() where T : Type1, Type2vb.net Code:
Function SomeFunction(Of T As {Type1, Type2})() As T




Reply With Quote