Applied R# suggestions before pushing to nuget

Signed-off-by: Martin Evans <martindevans@gmail.com>