Hi All,
I need some general clarification regarding Interface template, like below
Code
public interface ISomeInterfaceCode
{Code
string Id { get; set; }Code
string Name { get; set; }Code
ISomeInterface WorkerInstance();Code
}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 RanaRank #735 · 3.2K pointsPosted May 12, 2015, 12:34 AM EDT
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