-->

Using Rocks To Prevent Erosion


-->

Using Rocks To Prevent Erosion. User kokos answered the wonderful hidden features of c# question by mentioning the using keyword. The using statement ensures that dispose is called even if an exception occurs while you are calling methods on the object.

Rocks to prevent sea erosion hires stock photography and images Alamy
Rocks to prevent sea erosion hires stock photography and images Alamy from www.alamy.com

One for the key and one for the value. What is the logic behind the using keyword in c++? Can you elaborate on that?

-->

Rocks to prevent sea erosion hires stock photography and images Alamy

Can you elaborate on that? It is used in different situations and i am trying to find if all those have something in. Can you elaborate on that? The using statement ensures that dispose is called even if an exception occurs while you are calling methods on the object.

-->