Constructor and reference question
I have two questions.
1. Is it possible to call base constructor in the body of the current constructor?
I want code like this:
// some code here
2. I don't understand this code. I have an object that returns reference to the DataTable it contains. I am wondering how come that in following code t variable remains valid:
using ( ObjectWithTable owt = new ObjectWithTable() )
t = owt.Table;
The GC will free the owt as soon as it exits the using statement, but I can still access its table over t.