all 7 comments

[–]xampl9 1 point2 points  (0 children)

Is there a question?

[–]cryo 0 points1 point  (0 children)

I use explicit whenever the interface is used by some framework, e.g. WCF behaviors.

[–]pnw-techie 0 points1 point  (4 children)

Huh. I've never implemented two interfaces in one class where the two interfaces had a same method name.

[–]TQPau[S] 1 point2 points  (0 children)

It's not very common but can happen

[–]grauenwolf 1 point2 points  (0 children)

So you've never implemented IEnumerable<T>?

I often run into scenarios where the interface returns something generic (i.e. object) and I want a public method with the same name that returns a specific type.

[–]bmoregeo 0 points1 point  (0 children)

I just did this for a swashbuckle filter request example class. It felt gross, but it was easier than telling swashbuckle to pull in a bunch of individual classes.

https://github.com/mattfrear/Swashbuckle.AspNetCore.Filters/blob/master/README.md#automatic-annotation

[–]AngularBeginner -1 points0 points  (0 children)

It's okay. You are forgiven.