C# C# Streams and Data Processing Streaming Data on the Net Text Analytics API Part 2

Hakim Rachidi
Hakim Rachidi
33,679 Points

WebClient implements the IDisposable interface indirectly!

Didn't we actually have to use the Dispose() method on the webClient object to release the used memory or at least put the definition in an using-statement?

Hakim Rachidi
Hakim Rachidi
33,679 Points

I think it's a mistake. You should never leave a instance in your code which is not collected by the garbage collector, just like this.