المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : call second constructor



C# Programming
09-13-2009, 02:51 PM
Hello

i am reading article about data access
it have the below code


public DataServiceBase() : this(null) { }
public DataServiceBase(IDbTransaction txn)
{
if (txn == null)
{
_isOwner = true;
}
else
{
_isOwner = false;
_txn = (SqlTransaction)txn;
}
}

the autor comment than the first constructor simply calls the second constructor and passes in null for the transaction.


some can help me tranlate to vb

i test translate web but dont work

thanks for the time