2
Answers

Determine File Path String

Photo of Ramesh Singh

Ramesh Singh

2y
549
1

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?
 

Answers (2)