Our website uses cookies to enhance your browsing experience.
Accept
to the top
>
>
>
C#

Posts: C# articles

Jun 15 2021
.NET application optimization: simple edits speeded up PVS-Studio and reduced memory consumption by 70%
Nikita Lipilin
We know many ways to detect performance problems, such as extremely low speed and high memory consumption. Usually tests, developers, or testers detect such applications' drawbacks. In the...
...
Jun 11 2021
Why you should check values of public methods' parameters
Nikita Lipilin, Sergey Vasiliev
This note will answer the question - why PVS-Studio considers parameters of public methods potential sources of tainted data. The analyzer can issue warnings if such parameters haven't been...
...
Subscribe to the newsletter
Want to receive a monthly digest of the most interesting articles and news? Subscribe!
Jun 09 2021
Unity projects analysis: the solution file has two projects named "UnityEngine.UI"
Sergey Vasiliev
While PVS-Studio analyses a Unity project, one may stumble upon such an error: Error was encountered while trying to open solution file '...': The solution file has two projects...
...
Jun 03 2021
The ?. operator in foreach will not protect from NullReferenceException
Sergey Vasiliev
Do you like the ?. operator? Well, who doesn't? Many people like these concise null checks. However, today's article shows that the ?. operator may be tricky sometimes. That is, it can create...
...
Jun 01 2021
OWASP, vulnerabilities, and taint analysis in PVS-Studio for C#. Stir, but don't shake
Sergey Vasiliev
We continue to develop PVS-Studio as a SAST solution. Thus, one of our major goals is expanding OWASP coverage. You might ask, what's the use when there's no taint analysis? That's exactly what...
...
Apr 22 2021
Roslyn API: why PVS-Studio was analyzing the project so long
Valery Komarov
How many of you have used third-party libraries when writing code? It's a catchy question. Without third-party libraries the development of some products would be delayed for a very, very long...
...
Apr 21 2021
Finally! PVS-Studio supports .NET 5 projects
Nikita Lipilin
On November 10th, 2020, Microsoft released a new version of .NET Core - .NET 5. The updated platform presents many new enhancements. For example, it allows C# developers to use features the new...
...
Apr 06 2021
Hidden reefs in string pool, or another reason to think twice before interning instances of string class in C#
Ilya Gainulin
As software developers, we always want our software to work properly. We'll do everything to improve the software quality. To find the best solution, we are ready to use parallelizing or applying...
...
Mar 04 2021
What is yield and how does it work in C#?
Nikita Lipilin
C# capabilities keep expanding from year to year. New features enrich software development. However, their advantages may not always be so obvious. For example, the good old yield. To...
...
Mar 02 2021
PVS-Studio clashes with hardcoded passwords!
Nikita Lipilin
PVS-Studio is a static analyzer that allows to find many problems hidden in the source code. Among them there are also errors related to application security. For example, the analyzer has...
...
View more Pagination arrow previous
Showing: - of 218