fix for System.ArgumentException when referencing a static property in the template

Hi,

Visual Studio gemerates resource helpers with static getters, when using such a helper  the following exception is thrown:
context [anonymous] 1:1 internal error: System.ArgumentException: Static method requires null instance, non-static method requires non-null instance.
Parameter name: instance

I'm sending a simple fix

Greetings,