Removed all Resharper spotted warnings.