Fixing FxCop violations