After applying a majority of changes to code consistently issues brought up by Resharper

Signed-off-by: unknown <cnwnh1@cnwcb5a.cnw.co.nz>