Can you finish sentence first, please? 'If i write code in Class then finally set "RunOnProperty = Client" before execution' seems to miss the part of what should happen if the condition is met.
Note that setting RunOnProperty to Client would prevent the class from being used on server, which usually should be allowed.