C# 12 features: Using aliases
Part 5 in a series on new language features in C# 12.
Alias any type
Now you can create aliases for any type - it doesn't need to have a name. Tuple
s are a great example, but also arrays.
using P = Tuple<string, string, int>;
using C = char[];
Further reading
Example source
https://github.com/flcdrg/csharp-12/blob/main/05-alias/Aliases.cs
Categories: .NET