wmismail Posted June 4, 2009 Share Posted June 4, 2009 C Sharp IsNumeric Fonksiyonu Daha önce VB yada VB .Net ile yazılım geliştiren arkadaşlar bir değerin nümerik olup olmadığını kontrol etmemizi sağlayan kullanışlı IsNumeric() fonksiyonunun C#'da mevcut olmadığını göreceklerdir. C# ile geliştirdiğimiz projelerimizde kullanmak için kendi IsNumeric fonksiyonumuzu aşağıdaki gibi yazabiliriz. public bool IsNumeric(string strDeger){ try { Int32.Parse(strDeger); } catch { return false; } return true;}[/CODE] Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.