Coding Best Practices
Welcome to Performance & Best Practices section of C# Corner. In this section, you will find various Performance & Best Practices related source code samples, articles, tutorials, and tips.


  • Ojash Shrestha

    Common Software Engineering Practices For Production Code

    In this article, we’ll learn about various software engineering practices common in software industry today. This will help improve the standard of code, code quality and practices which will enabl...
    Ojash Shrestha Jul 02, 2021
  • Nilanjan Dutta

    Clean Code - Single Level Of Abstraction

    A clean code perspective with Single Level of Abstraction.
    Nilanjan Dutta Dec 21, 2020
  • Jin Vincent Necesario

    Klocwork - Get Started With A Static Code Analyzer

    This article helps you get started with a static code analyzer. It begins with the theoretical concepts and ends with a static code analyzer's practical usage using Klocwork.
  • Mahesh Chand

    Copying Data from one DataTable to Another using ImportRow

    I recently have been engaged in an assignment where I had to copy large chunks of data from one DataTable to another. This article talks about how DataTable.ImportRow method may be more effective t...
    Mahesh Chand Jul 09, 2006
  • Shweta Lodha

    Tips For Effective Code Reviews

    This article will list down most common and important tips which one needs to take care while performing code reviews
    Shweta Lodha Oct 13, 2020
  • Atul Sharma

    Measuring Code Quality With Visual Studio

    In this article, you will learn how to measure code quality with Visual Studio.
    Atul Sharma Aug 27, 2020
  • Atul Sharma

    NDepend - A Complete Static Code Analysis Tool

    A few months ago, I came across one static code analysis tool named NDepend and found this to be the next level of static code analysis
    Atul Sharma Aug 18, 2020
  • Monica Rathbun

    Coding Standards Gone Bad

    In this article, you will learn about the Coding Standards Gone Bad.
    Monica Rathbun Apr 23, 2020
  • David Mccarter

    What Can Be Done To Make Code Quality Better

    In this article, you will learn what can be done to make code quality better.
    David Mccarter Dec 29, 2019
  • David Mccarter

    Code Quality Is A Feature, Not An Afterthought

    In this article you will learn that code quality is a feature, not an afterthought.
    David Mccarter Jun 10, 2019
  • Bechir Bejaoui

    Some Real Differences Between Structures and Classes

    This article lists some differences between classes and structures. In this article, we will see what is the difference between a structure and a class.
    Bechir Bejaoui Mar 02, 2009
  • Atul Sharma

    All About OWASP #3 - Sensitive Data Exposure

    In this part of the study of OWASP Top 10 Threats, we will understand Threat # 3 – Sensitive Data Exposure.
    Atul Sharma Apr 24, 2019
  • Atul Sharma

    All About OWASP #1 - SQL Injection Attack

    Considering security as the most important aspect of an application and as the First step in SOUND Programming Methodology, we will be covering SQL Injection Attack and Prevention.
    Atul Sharma Feb 13, 2019
  • Atul Sharma

    All About OWASP #2 - Broken Authentication

    In this article, we will learn about Secure Programming of SOUND programming methodology. We will cover Broken Authentication from OWASP's top 10 security threats.
    Atul Sharma Apr 01, 2019
  • Atul Sharma

    An Effective Coding And Code Review Technique

    Coding and Code review are the most basic building blocks of any software product. Any lapse may severely affect the schedule, quality, and of course the cost. Not only in the review but a few issu...
    Atul Sharma Jan 09, 2019
  • Saurabh

    Generics in C# 2.0

    In this article, I specifically talk about Generics and how they improve upon arraylists and how they solve the issues posed by ArrayLists.
    Saurabh Apr 17, 2006
  • Matthew Cochran

    C# Heap(ing) Vs Stack(ing) In .NET - Part Three

    Having a basic understanding of how memory management works will help explain the behavior of the variables we work with in every program we write. In this article we’ll cover an issue that arises...
    Matthew Cochran Jan 15, 2006
  • Shivprasad

    Best Practices No 5: Detecting .NET application memory leaks

    In this article we are going to detect the .NET application memory leaks.
    Shivprasad Sep 29, 2009
  • Mehreen Tahir

    Ineffective Coding Habits - What To Avoid

    In this article, I'll be talking about some habits of programmers which are not so effective. We'll be looking into what to avoid and how to code effectively.
    Mehreen Tahir Nov 26, 2018
  • David Mccarter

    Presenting Code Samples With A Dark Theme...Please Do Not

    For all of you who code using apps like Visual Studio or VS Code, please don’t present code in a meeting or conference session using a dark theme! I know I am going to get a lot of push back from t...
    David Mccarter Nov 09, 2018
  • View More