예를 들어
using(var something = GetSomething()) { something.DoSomething(); if(something.IsX()) return true; } return false;