The following code compiles, but it seems that Microsoft's docs don't mention this particular constraint type at all.
class TestGenericsBase<T1>
{
public virtual void Method1<T>(T arg)
{
}
}
class TestGenerics : TestGenericsBase<object>
{
public override void Method1<T>(T arg)
where T : default // what does this do?
{
}
}
Any idea what does it do? The only clue I have so far is that it only works on methods.