Is it possible to make this code a little more compact by somehow declaring the 2 variable inside the same using block?
using (var sr = new StringReader(content))
{
using (var xtr = new XmlTextReader(sr))
{
obj = XmlSerializer.Deserialize(xtr) as TModel;
}
}