Have you tried client.banhours or client.banreason?
If Client.GameClient is a class and those are properties or fields, they must not be accessed like an array or dictionary.
2
solved Cannot apply indexing with [] to an expression of type? [closed]