Two Favorite C# 10 Features

19 Oct 21 (1 min read)
global using System;                     // for all files (if needed or not)
global using System.Collections.Generic; // obvious reasons
global using System.Linq;                // makes playing with collections better
global using System.Threading.Tasks;     // mostly for web projects
using System;                     // for all files (if needed or not)
using System.Collections.Generic; // obvious reasons
using System.Linq;                // makes playing with collections better
using System.Threading.Tasks;     // mostly for web projects

namespace TheNamespace
{
  // Everything is now tabbed over - 4 spaces!
  public class SampleClass { }
}
namespace TheNamespace;
// Everything is now tabbed over - 4 spaces!
public class SampleClass { }
< back