Resharped

i fixed all resharper warnings i could find

i also changed the "member can be made private" severity so it is not displayed ( due to resharper issues with c++ and the general problem that we dont demonstrate every api we expose in the example ) but i could not find a setting to commit that change