Data type aliasing allows us to use an alias of a data type instead of actual data type name.
For example if we want to use System.Int32 in our code but we may want to change it to Int64 or Int16 in future. So instead of using Int32 in our code and then replacing the whole code with Int64 later, what we can do is, we can declare an alias for Int32 and use it, later on when we want to use Int64 we can just change the alias declaration and its done.
Using in code
using MyType = System.Int32;
using MyType = System.Int64;
Points of Interest
This is really cool to use when another team is working on some class who’s' final name we don't know, so for the time we can create a dummy class and use an alias throughout the code and later we can replace the alias declaration with actual class name.
I started programming for fun when I was in Higher Secondary (1995). It was a table writing program in C..haah!! those were the best days of my life
But now it has brought me to no. of jobs in roles of developer, Lead, Architect, Coach and Consultant....
.Net c# is my passion specially when it comes to build api and frameworks to facilitates development teams....
I always learned things by example, now its a pleasure and responsiblity to give learnings back to next generation of coders.