That looks like a literal conversion of a C# 'using' block.
The 'delete' operator used on a ref type object is equivalent to a call to
the object's Dispose method (which isn't called directly in C++/CLI). So,
you would normally only need to use the delete operator on a ref type object
when you need to call the object's own cleanup Dispose. If the object has no
Dispose (the majority of objects), you do not need to use the delete operator.

Signature
http://www.tangiblesoftwaresolutions.com
C++ to C#
C++ to VB
C++ to Java
C++ to C++/CLI
Instant C#: VB to C# converter
Instant VB: C# to VB converter
Instant C++: convert VB or C# to C++/CLI
> Hello,
>
[quoted text clipped - 21 lines]
> delete (IDisposable^)sr; // <-----DELETE HERE ???
> }