Maintain consistent code formatting by adhering to the defined standards in the .editorconfig file and Azure SDK implementation guidelines at https://azure.github.io/azure-sdk/dotnet_implementation.html. Pay attention to these specific formatting rules:

  1. Avoid trailing whitespace at the end of lines
  2. In tests, do not emit “Act”, “Arrange”, or “Assert” comments
  3. When including code examples in documentation (like README files), ensure they are mirrored in corresponding test files with proper conditional compilation:
#if SNIPPET
// Code snippet that appears in README
[DllImport("user32.dll")]
static extern IntPtr GetForegroundWindow();
#endif
  1. Use correct casing, grammar, and formatting in changelog entries:

Consistent formatting improves readability, simplifies code reviews, and helps maintain a professional codebase.