C# Tips

Today's C# Quiz

Quiz

When defining a class using C# Generics, which of the followings is invalid?

class MyClass where T : struct
class MyClass where T : class
class MyClass where T : IComparable
class MyClass where T : MyBase
All of the above are correct

Tip

Answer