C# Tips

Today's C# Quiz


There is one static readonly field in a class. If you want to assign a value to this field, which of the following statements is best described?

You always should assign a value directly in the static readonly field definition statement
You always should assign a value in the constructor
You can assign a value either in field definition statement or in constructor
If the assignment is done before used, you can assign a value at any place