resharper redundancy fixes