I should also note that m_swOutputFile is always closed and set to null at the end of every method that uses it . So there is no reason for it to be a field as it is never reused or shared .