In .NET DataColumn objects are IDisposable, but if you have a DataColumn[], then you can't dispose of it. How come, just wondering?
-
-
Because arrays are not disposable. Arrays of T do not descend from T.
Walk the array and dispose of each item individually. -
DataCollumn[] is an array type that stores references to DataCollumn objects in heap because DataCollumn is a reference type.
The Array Type is a reference type that doesn't implement IDisposable
DataCollumn[] is an type derived from Array, compiler generated
and ofcourse it does'i implement the same interfaces of it elements.
-
Gotcha...thanks a bunch

Thread Closed
This thread is kinda stale and has been closed but if you'd like to continue the conversation, please create a new thread in our Forums,
or Contact Us and let us know.