Skip to content

Instantly share code, notes, and snippets.

@Blind-Striker
Created September 6, 2017 12:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Blind-Striker/b97fd372f6ef5c30f1f4cf99e6900f17 to your computer and use it in GitHub Desktop.
Save Blind-Striker/b97fd372f6ef5c30f1f4cf99e6900f17 to your computer and use it in GitHub Desktop.
Old out example for blog
public void UpdateUserBalance(int userId, string balance) // harici bir sistemden gelen string data
{
decimal userBalance;
if(decimal.TryParse(balance, out userBalance))
{
Console.WriteLine($"{userId} id'li kullanıcının bakiyesi {userBalance}");
}
else
{
Console.WriteLine("Geçerisiz bir değer girildi");
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment