Created
September 6, 2017 12:18
-
-
Save Blind-Striker/b97fd372f6ef5c30f1f4cf99e6900f17 to your computer and use it in GitHub Desktop.
Old out example for blog
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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