M
My interest
Can I create a specialized generic method depends on the constraint on
the generic type constraint? such as:
static class foo
{
public static void f<T_>(T_ dummy) where T_: struct { ....}
public static void f<T_>(T_ dummy) where T_: class { ....}
}
Thanks.
the generic type constraint? such as:
static class foo
{
public static void f<T_>(T_ dummy) where T_: struct { ....}
public static void f<T_>(T_ dummy) where T_: class { ....}
}
Thanks.