c# warnings catching