Basically as stated in the title, if I do this:
private const string TYPEOF_STRING = typeof(String).FullName;
Why does it give me the error of:
The expression being assigned to 'Cognitronics.Generic.CloudClient.TYPEOF_STRING' must be constant
EDIT:
It seems we have conflicting answers here and in the thread Habib linked too. Here everyone has said that it is not a compile time constant, whereas in the other thread everyone says it is. This has just made me even more confused so I would like to re-ask which is it?