@handsomematt closed #3441
and it looks like you can write abstract/virtual interface members
but not use them
the following code
public interface ITest
{
static virtual string TestString { get; } = string.Empty;
}
public class Test<T> where T : ITest
{
public string Run()
{
return T.TestString;
}
}
What it is?
@handsomematt closed #3441 and it looks like you can write abstract/virtual interface members but not use them
the following code
will produce
Why do you need to use this?
this is a cool c# feature writing oop code is gonna be easier with this