Fixed StyleCop and FxCop violations.