I saw the following namespace implementation in an article and i really can’t get the point why they did so?
using sysConfig =System.Configuration ;
string connectionString = sysConfig.ConfigurationManager.
ConnectionStrings["connectionString"].ConnectionString;
I know It can be easily implemented like this,
string connectionString = System.Configuration.ConfigurationManager.
ConnectionStrings["connectionString"].ConnectionString;
Any suggestion when to use the first type…
Two reasons for using namespace aliases:
In the example you provided, I don’t see the benefit though. It just confuses the person reading the code.