Compiler-Friendly Code: Sealed Keyword in .NET C#
Ahmed Tarek Hasan
Senior Software Design Engineer @ASML (Advanced Semiconductor Material Lithography) | Technical Blogger | Development Simply Put (DevelopmentSimplyPut.com)
Why & When Sealed Keyword could lead to a performance boost in .NET C#
What does it mean to write compiler friendly code?
Any .NET code passes by more than one phase till finally reaches the machine code. Since many factors are involved into this process, there could be lots of details which we miss when we are first writing our code.
However, the more clear and deterministic the code we write is, the more the compiler could assist us and generate optimized machine code.
In this article, we are going to discuss one example of the ways by which we can help the compiler optimize our code. This way is; using the?Sealed Keyword.
Enough with the talking and let’s see an example…
?????You can read the rest of the article on?Compiler-Friendly Code: Sealed Keyword in .NET C#
This link????is a???Friend Link??.?So, you?don’t need?Medium Premium Membership????to read the article.
More From the Author
and even?more...