Resolved code analysis issues identified by Resharper