This is the kind of thing I want to do:
Interface IMyInterface
{
List GetAll(string whatever)
}
so that classes imp
This works for me:
public interface IMyInterface
{
List GetAll(string whatever);
}
public class Program : IMyInterface
{
public string Member { get; set; }
public List GetAll(string whatever)
{
return new List()
{ new Program() { Member = whatever } };
}
static void Main(string[] args)
{
List all = new Program().GetAll("whatever");
Console.WriteLine(all.Count);
}
}