Keep code clean and well-organized by:

  1. Removing unnecessary elements:
  2. Organizing imports properly:

Example - Before:

using Azure.Core;
using System.Threading;
using System.Linq.Enumerable;
// Old implementation
// public void OldMethod() {
//    // ...
// }
using System;

public class MyClass 
{
    public void ProcessItems()
    {
        if (System.Linq.Enumerable.Any(items)) // Verbose qualification
        {
            // ...
        }
    }
}

After:

using System;
using System.Linq;
using System.Threading;
using Azure.Core;

public class MyClass
{
    public void ProcessItems() 
    {
        if (items.Any()) // Clean syntax with proper imports
        {
            // ...
        }
    }
}