Skip to content

Instantly share code, notes, and snippets.

@tuanpmt
Last active May 2, 2022 08:17
Show Gist options
  • Save tuanpmt/debd9c21748cad8f97a96dceb7d4b731 to your computer and use it in GitHub Desktop.
Save tuanpmt/debd9c21748cad8f97a96dceb7d4b731 to your computer and use it in GitHub Desktop.
formating code
//DON'T
public void DoSomething()
{
for (var i = 0; i < 1000; i++)
{
var productCode = $"PRC000{i}";
//...implementation
}
}
//DO
public void DoSomething()
{
for (var i = 0; i < 1000; i++)
{
var productCode = $"PRC000{i}";
//...implementation
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment