How can I protect a file path string that is determined at runtime and retrieved from a function only once, so that it cannot be modified later? I cannot use the const keyword since its value is determined at runtime, and the readonly keyword is not working. Is there any other way to achieve this protection without creating another class?