How to become an author
.NET Knowledge Base
  • All streams
  • Development
  • Administrating
  • Design
  • Management
  • Marketing
  • PopSci
Log in Sign up
175.61
Rating

.NET

A hub about .NET Framework

All posts

Top

Authors

Companies

  • Any rating
  • ≥10
  • ≥25
  • ≥50
  • ≥100
  • Firensis yesterday at 12:04 PM

    What Is yield and How Does It Work in C#?

    • PVS-Studio corporate blog,
    • Programming,
    • .NET,
    • C#,
    • Development for Windows

      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 some developers, especially beginners, it's like magic - inexplicable, but intriguing. This article shows how yield works and what this peculiar word hides. Have fun reading!

      Read more
      • +1
      • 310
      • Comment
    • foto_shooter February 12, 2021 at 10:22 PM

      Should We Initialize an Out Parameter Before a Method Returns?

      • PVS-Studio corporate blog,
      • .NET,
      • C#


        Surely every C# developer has used out-parameters. It seems that everything is extremely simple and clear with them. But is it really so? For a kickoff, let's start with a self-test task.

        Read more →
        • +4
        • 852
        • Comment
      • Ilya_Gainulin February 4, 2021 at 05:50 PM

        A Spy Undercover: PVS-Studio to Check ILSpy Source Code

        • PVS-Studio corporate blog,
        • Programming,
        • .NET,
        • C#

          In PVS-Studio, we often check various compilers' code and post the results in our blog. Decompiler programs, however, seem to be a bit neglected. To restore justice in this world, we analyzed the ILSpy decompiler's source code. Let's take a look at the peculiar things PVS-Studio found.

          Читать далее
          • 0
          • 457
          • Comment
        • ValeryKomarov February 1, 2021 at 03:20 PM

          C# Programmer, It's Time to Test Yourself and Find Error

          • PVS-Studio corporate blog,
          • Programming,
          • .NET,
          • C#

            The PVS-Studio analyzer is regularly updated with new diagnostic rules. Curiously enough, diagnostics often detect suspicious code fragments before the end of the work. For example, such a situation may happen while testing on open-source projects. So, let's take a look at one of these interesting finding.

            Read more
            • 0
            • 654
            • Comment
          • Please pay attention

          • Firensis December 24, 2020 at 03:05 PM

            Top-10 Bugs Found in C# Projects in 2020

            • PVS-Studio corporate blog,
            • Programming,
            • .NET,
            • C#
              image1.png

              This tough year, 2020, will soon be over at last, which means it's time to look back at our accomplishments! Over the year, the PVS-Studio team has written quite a number of articles covering a large variety of bugs found in open-source projects with the help of PVS-Studio. This 2020 Top-10 list of bugs in C# projects presents the most interesting specimens. Enjoy the reading!
              Read more →
              • –1
              • 920
              • Comment
            • andreyka26 December 19, 2020 at 08:02 PM

              Rich text editors from backend perspective

              • Website development,
              • .NET,
              • HTML,
              • Angular,
              • Data visualization
                Welcome everyone, in this article I’m going to overview the most popular types of rich text editors, tradeoffs of their use from a backend perspective. By that I mean:

                • Streaming of content from the rich text editor to other infrastructure tools like full-text search, warehouses, etc.
                • Retrieving of content to clients: mobile, web, desktop.
                • Storing of content in some kind of storage (SQL database in my case)
                • Analyzing of content, which includes point 1, but also analyzing it from the perspective of our application
                Read more →
                • –1
                • 978
                • 1
              • SvyatoslavMC December 17, 2020 at 10:01 AM

                ONLYOFFICE Community Server: how bugs contribute to the emergence of security problems

                • PVS-Studio corporate blog,
                • Information Security,
                • Open source,
                • .NET,
                • C#
                  image1.png

                  Server-side network applications rarely get the chance to join the ranks of our reviews of errors found in open source software. This is probably due to their popularity. After all, we try to pay attention to the projects that readers themselves offer us. At the same time, servers often perform very important functions, but their performance and benefits remain invisible to most users. So, by chance, the code of ONLYOFFICE Community Server was checked. It turned out to be a very fun review.
                  Read more →
                  • +2
                  • 608
                  • 2
                • Ads
                  AdBlock has stolen the banner, but banners are not teeth — they will be back

                  More
                • IchNikola December 16, 2020 at 10:47 AM

                  Talking About Errors in the QuantConnect Lean Code

                  • PVS-Studio corporate blog,
                  • Open source,
                  • .NET,
                  • C#
                    image1.png

                    This article discusses errors found using a static analyzer in an open source project. There are some simple things that can help you avoid them. For example, the usage of language syntactic constructs starting from C# 8.0. We hope it will be exciting. Have fun reading!
                    Read more →
                    • 0
                    • 228
                    • Comment
                  • anatolii_kabanov December 8, 2020 at 12:41 PM

                    Development of “YaRyadom” (“I’mNear”) application under the control of Vk Mini Apps. Part 1 .Net Core

                    • PostgreSQL,
                    • .NET,
                    • API,
                    • C#
                    • Translation
                    Application is developed in order to help people find their peers who share similar interests and to be able to spend some time doing what you like. The project is currently on the stage of beta-testing in the social network “VKontakte”. Right now I am in the process of fixing bugs and adding everything that is missing. I felt like I could use a bit of destruction and decided to write a little about the development. While I was writing, I decided to divide the text into different parts. Here we are going to pay more attention to backend nuances which I faced, and to everything that a user does not see.
                    Read more →
                    • 0
                    • 298
                    • Comment
                  • SvyatoslavMC November 27, 2020 at 09:54 AM

                    Analyzing the Code Quality of Microsoft's Open XML SDK

                    • PVS-Studio corporate blog,
                    • Open source,
                    • .NET,
                    • C#,
                    • Development for Office 365
                      image1.png

                      My first encounter with Open XML SDK took place when I was looking for a library that I could use to create some accounting documents in Word. After more than 7 years of working with Word API, I wanted to try something new and easier-to-use. That's how I learned that Microsoft offered an alternative solution. As tradition has it, before our team adopts any program or library, we check them with the PVS-Studio analyzer.
                      Read more →
                      • –1
                      • 643
                      • 1
                    • WhiteBlackGoose November 19, 2020 at 09:47 AM

                      Jupyter for .NET. «Like Python»

                      • .NET,
                      • C#,
                      • Mathematics,
                      • F#
                      • Translation
                      A few months ago Microsoft announced about the creation of Jupyter for .NET. However, people are barely interested in it despite how attractive the topic is. I decided to make a LaTeX wrapper for the Entity class from a symbolic algebra library:



                      Looks awesome. Is simple. Very enjoyable. Let's see more!
                      Read more →
                      • +2
                      • 859
                      • Comment
                    • Makeman November 4, 2020 at 07:54 PM

                      XAML Aesthetics: Value Converters

                      • Programming,
                      • .NET,
                      • Industrial Programming,
                      • Xamarin
                      • Tutorial

                      This article presents generalized approaches for using value converters into writing of XAML code.

                      >> Read in Russian

                      Read in English
                      • 0
                      • 590
                      • Comment
                    • foto_shooter October 30, 2020 at 03:33 PM

                      Check how you remember nullable value types. Let's peek under the hood

                      • PVS-Studio corporate blog,
                      • .NET,
                      • C#
                        image1.png

                        Recently nullable reference types have become trendy. Meanwhile, the good old nullable value types are still here and actively used. How well do you remember the nuances of working with them? Let's jog your memory or test your knowledge by reading this article. Examples of C# and IL code, references to the CLI specification, and CoreCLR code are provided. Let's start with an interesting case.
                        Read more →
                        • 0
                        • 570
                        • Comment
                      • IchNikola October 6, 2020 at 11:59 AM

                        Nullable Reference will not protect you, and here is the proof

                        • PVS-Studio corporate blog,
                        • .NET,
                        • Visual Studio,
                        • C#
                          image1.png

                          Have you ever wanted to get rid of the problem with dereferencing null references? If so, using Nullable Reference types is not your choice. Do you want to know why? This will be our topic today.
                          Read more →
                          • +1
                          • 884
                          • Comment
                        • EuGeniec October 1, 2020 at 05:46 PM

                          Aspect-Oriented Programming (AOP) by source-level weaving

                          • .NET,
                          • C#
                            image

                            Aspect-oriented programming is a very appealing concept for simplifying your codebase, creating clean code, improving modularity, structure of code and minimizing copy-paste errors.

                            Today, in most cases, weaving aspect's advices is implemented at the bytecode level, i.e. after compilation, a certain tool «weave» an additional byte code with the support of the required logic.

                            Our approach (as well as the approach of some other tools) is modifying the source code to implement aspect logic. With introduction of the .NET Compiler Platform (aka Roslyn), it is quite easy to achieve this goal, and the result gives certain advantages over the modification of the byte code itself.
                            Read more →
                            • 0
                            • 609
                            • Comment
                          • varunbhagat1 August 31, 2020 at 10:22 AM

                            Data Science vs AI: All You Need To Know

                            • .NET,
                            • Angular,
                            • DevOps,
                            • Artificial Intelligence,
                            • Data Engineering

                              What do these terms mean? And what is the difference?


                              image

                              Data Science and Artificial Intelligence are creating a lot of buzzes these days. But what do these terms mean? And what is the difference between them?

                              While the terms Data Science and Artificial Intelligence (AI) comes under the same domain and are inter-connected to each other, they have their specific applications and meaning.

                              There’s no slowing down the spread of AI and data science. Many big tech giants are extensively investing in these technologies. As per the recent survey, it is estimated that artificial intelligence could add $15.7 trillion to the global economy by 2030.

                              Through this piece of writing, I will be explaining about the AI and data science concepts and their differences in detail. So, without wasting any more time, let’s get started!
                              Read more →
                              • +1
                              • 1.1k
                              • 1
                            • dmitry_pavlov August 26, 2020 at 12:19 AM

                              Tree Structure in EF Core: How to configure a self-referencing table and use it

                              • .NET,
                              • C#
                              • Tutorial

                              One of the very common questions I am getting from .NET community is how to configure and use the tree structures in EF Core. This story is one of the possible ways to do it.


                              The common tree structures are file tree, categories hierarchy, and so on. Let it be folders tree for example. The entity class will be a Folder:


                              public class Folder
                              {
                                  public Guid Id { get; set; }
                                  public string Name { get; set; }      
                                  public Folder Parent { get; set; }
                                  public Guid? ParentId { get; set; }
                                  public ICollection<Folder> SubFolders { get; } = new List<Folder>();
                              }
                              Read more →
                              • +1
                              • 4.3k
                              • 1
                            • programmersio June 30, 2020 at 04:40 PM

                              Critical Transcendence: .NET SDK and Apache Spark

                              • .NET,
                              • Microsoft SQL Server,
                              • Apache,
                              • Microsoft Azure,
                              • Machine learning

                                When Alex Garland’s series Devs (on FX and Hulu) came out this year, it gave developers their own sexy Hollywood workup. Who knew that coders could get snarled into murder plots and love triangles just for designing machine learning programs? Or that their software would cause a philosophical crisis? Sure, the average day of a developer is more code writing than murder but what a thrill to author powerful new program.


                                Read more →
                                • 0
                                • 369
                                • 1
                              • Firensis June 17, 2020 at 05:43 PM

                                How to find errors in a C# project working under Linux and macOS

                                • PVS-Studio corporate blog,
                                • .NET,
                                • C#,
                                • Development for MacOS,
                                • Development for Linux

                                  Picture 8

                                  PVS-Studio is a well-known static code analyzer that allows you to find a lot of tricky errors hidden in the source code. Beta testing of the new version has recently finished. It provides the possibility to analyze C# projects under Linux and macOS. The tool can also be integrated into the cross-platform IDE from JetBrains — Rider. This article will help you to get acquainted with these features using the example of checking the open source RavenDB project.
                                  Read more →
                                  • 0
                                  • 338
                                  • Comment
                                • shefali_basu June 4, 2020 at 02:34 PM

                                  Java vs .Net: Who will Reign in the Future?

                                  • Java,
                                  • .NET
                                  • From sandbox
                                  As the time is changing, technologies are expanding and with that, the priority and the importance of the technical languages are also changing. So, usually, it becomes difficult to pick when we have to choose between two languages.

                                   

                                   

                                  java vs .net


                                   

                                  Here we will see the battle between Java and Microsoft .Net in order to make this clear which language is better to choose. For that, you may also have a quick look at this short video:
                                  Read more →
                                  • +3
                                  • 25.9k
                                  • 3
                                • ← here
                                • there →
                                • 1
                                • 2
                                • 3
                                • 4
                                • 5
                                • 6
                                • 7
                                Ads
                                AdBlock has stolen the banner, but banners are not teeth — they will be back

                                More

                                Community sponsors

                                • VTB
                                  Develops and makes financial services accessible online.
                                • Huawei
                                  ICT expert. Supplies smart devices and builds intelligent infrastructure
                                • Avito
                                  Master of ads in Russia. Handles high loads.
                                How to become a sponsor

                                Authors' contribution

                                • sidristij 2,374.0
                                • XaocCPS 1,993.2
                                • olegchir 1,312.2
                                • sahsAGU 1,271.6
                                • mezastel 1,203.2
                                • SergeyT 1,148.2
                                • phillennium 930.2
                                • chernikov 822.0
                                • marshinov 808.6
                                • foto_shooter 684.0
                                Top 100 authors

                                Popular right now

                                • Audio over Bluetooth: most detailed information about profiles, codecs, and devices
                                  163k 9
                                • What Is yield and How Does It Work in C#?
                                  310 0
                                • Free Heroes of Might and Magic II: Open-Source Project that You Want to Be Part of
                                  2.5k 0
                                • Python consumes a lot of memory or how to reduce the size of objects?
                                  60.7k 3
                                • Spring Boot app with Apache Kafka in Docker container
                                  4.4k 1
                                • Java vs .Net: Who will Reign in the Future?
                                  25.9k 3
                                No reasons for downvotes yet
                                Reasons for downvotes

                                Top posts

                                • Day
                                • Week
                                • Month
                                • Audio over Bluetooth: most detailed information about profiles, codecs, and devices
                                  +22 163k 14 9
                                • What Is yield and How Does It Work in C#?
                                  +1 310 1 0
                                • What's new in AngouriMath 1.2?
                                  +6 223 2 0
                                • Java vs .Net: Who will Reign in the Future?
                                  +3 25.9k 5 3
                                • Startups going global: a guide to Startup Digest
                                  +3 362 5 0
                                • What Is yield and How Does It Work in C#?
                                  +1 310 1 0
                                • What's new in AngouriMath 1.2?
                                  +6 223 2 0
                                • Free Heroes of Might and Magic II: Open-Source Project that You Want to Be Part of
                                  +6 2.5k 0 0
                                • Date Processing Attracts Bugs or 77 Defects in Qt 6
                                  +1 1.2k 0 0
                                • Algorithms in Go: Dutch National Flag
                                  +8 1k 5 4
                                • Should We Initialize an Out Parameter Before a Method Returns?
                                  +4 852 1 0

                                Please pay attention

                                Your account

                                • Log in
                                • Sign up

                                Sections

                                • Posts
                                • Hubs
                                • Companies
                                • Users
                                • Sandbox

                                Info

                                • How it works
                                • For Authors
                                • For Companies
                                • Documents
                                • Agreement
                                • Terms of service

                                Services

                                • Ads
                                • Subscription plans
                                • Content
                                • Seminars
                                • Megaprojects
                                © 2006 – 2021 «Habr»
                                Language settings
                                About
                                Support
                                Mobile version
                                Language settings
                                Interface
                                Content