Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

c# does readonly improve performance

//No, it's just to ensure that once the object is fully constructed,
//that field cannot be pointed to a new value.
"""This C# modifier does not affect performance.
It just enforces certain constraints in the compiler.
This leads to greater program quality."""
Source by www.dotnetperls.com #
 
PREVIOUS NEXT
Tagged: #readonly #improve #performance
ADD COMMENT
Topic
Name
4+5 =