Author: SimonDrake | Posted on: 4/2/2009 3:31:57 PM | Views : 845

I'm trying to understand the -why- of this ... and I'm really struggling to grasp the concept of what I'm telling the compiler to do when I use an IInterface syntax. Can anyone explain it in a "this is what's going on" way?

Anyway ... my main question is....

What is the difference between

public IEnumerable MyMethod() {...}

and

public string MyMethod() : IEnumerable {...}

Why would you use one over the other?

Thanks,
Simon

...

Go to the complete details ...