Feature Request: Improved "Join declaration and assigment"
I have the following code:
SqlCommand myCommand;
myCommand = null;
myCommand = new SqlCommand
{
CommandType = CommandType.StoredProcedure,
CommandText = "sp_getmarketdate"
};
The result of a "join declaration and assignment" refactoring is this:
SqlCommand myCommand = null;
myCommand = new SqlCommand
{
CommandType = CommandType.StoredProcedure,
CommandText = "sp_getmarketdate"
};
Better would be this:
SqlCommand myCommand = new SqlCommand
{
CommandType = CommandType.StoredProcedure,
CommandText = "sp_getmarketdate"
};
Please sign in to leave a comment.