MCQs>IT & Programming>C#>Which of the following statements is correct about the difference between Static readonly and const?
C# MCQs
Which of the following statements is correct about the difference between Static readonly and const?
Answer
Correct Answer: Read only static are evaluated when code execution hits class reference (i.e.: new instance is created or static method is executed), and must have evaluated value by the time static constructor is done. Const is static by default and must have compilation-time value.
Explanation:
Note: This Question is unanswered, help us to find answer for this one