Found this piece of code today:
EventFeed feed = null; feed = service.Query(eventQuery) as EventFeed;
Why as EventFeed at the end? The return type of this function is already EventFeed , so I try my best to see the advantage of such a statement.
It was hard for me to find this problem, so I ask here. What are the benefits of writing such a line?
source share