About 309,000 results
Open links in new tab
  1. .NET Coding Conventions - C# | Microsoft Learn

    Jan 18, 2025 · Learn about commonly used coding conventions in C#. Coding conventions create a consistent look to the code and facilitate copying, changing, and maintaining the code. This article also includes the docs repo coding guidelines

  2. .NET code style rule options - .NET | Microsoft Learn

    Oct 8, 2024 · You can define and maintain consistent code style in your codebase by defining .NET code-style rules and their associated options in a configuration file. These rules are surfaced by various development IDEs, such as Visual Studio, as you edit your code.

  3. runtime/docs/coding-guidelines/coding-style.md at main - GitHub

    When editing files, keep new code and changes consistent with the style in the files. For new files, it should conform to the style for that component. If there is a completely new component, anything that is reasonably broadly accepted is fine.

  4. C# Coding Best Practices – Coding Conventions with Examples

    Jan 13, 2023 · In this article, we will learn about the best coding practices every C# developer should know. There are various naming conventions you should use when following best coding practices in C#.

  5. C# Coding Standards and Best Practices - Dofactory

    Sep 30, 2023 · Below are our C# coding standards, naming conventions, and best practices. Use these in your own projects and/or adjust these to your own needs. do use PascalCasing for class names and method names. //... Why: consistent with the Microsoft's .NET Core, and easy to read. do use camelCasing for local variables and method arguments. // ...

  6. Code Style and Conventions in C# | Useful Codes

    Jan 18, 2025 · Code style refers to the guidelines and conventions that developers follow when writing code. Adhering to a consistent code style is crucial for several reasons: Maintainability: Code style promotes readability and makes it easier …

  7. Writing Clean and Consistent C# Code: A Guide to .NET Code

    Sep 23, 2024 · As a C# developer working within the .NET ecosystem, maintaining a consistent code style is crucial to developing readable, maintainable, and scalable applications. Following established...

  8. Code-style rules overview - .NET | Microsoft Learn

    Mar 25, 2025 · .NET code-style analysis provides rules that aim to maintain consistent style in your codebase. These rules have an "IDE" prefix in the rule ID. The code-style rules are organized into the following subcategories: Language and unnecessary code rules. Rules that pertain to the C# or Visual Basic language.

  9. Identifier names - rules and conventions - C# | Microsoft Learn

    Dec 15, 2023 · You can enforce naming conventions that concern capitalization, prefixes, suffixes, and word separators by using code-style naming rules.

  10. C# Clean Code: Coding Conventions - DEV Community

    Oct 20, 2024 · Learn the essential coding conventions in C# to write clean, consistent, and maintainable code. This article covers naming conventions, layout, comments, and C# language guidelines with practical examples and Visual Studio’s refactoring tools.

  11. Some results have been removed
Refresh