Hi All,
I need some general clarification regarding Interface template, like below
public interface ISomeInterface
{ string Id { get; set; }
string Name { get; set; }
ISomeInterface WorkerInstance();
}In the above code they used method return type as interface in same interface declaration. Am not sure why they coded like this. Please share your comments
Pranay RanaPosted May 12, 2015, 4:34 AM
example
interface IA
{
IA methodA();
}
public class A : IA
{
public IA methodA()
{
var A = new A();
return A;
}
}
Best answer for this : http://stackoverflow.com/questions/400135/c-sharp-listt-or-ilistt