'T': type used in a using statement must be implicitly convertible to 'System.IDisposable'
The using Statement is intended to be used to ensure the disposal of an object at the end of the using block, thus, only types which are disposable may be used in such a statement. For example, value types are not disposable, and type parameters which are not constrained to be classes may not be assumed to be disposable.
The following sample generates XS1674.
// XS1674.prg
The following sample generates XS1674.
// XS1674_b.prg
The following case illustrates the need for a class type constraint to guarantee that an unknown type parameter is disposable. The following sample generates XS1674.
// XS1674_c.prg
// compile with: /target:library