Thursday, July 30, 2009

Which convert function should we use in C# , why ?

what difference between convert functions and parse function. Which should we use Convert function(like Convert.Toint, Convert.Tobyte . . .) or int.parse, byte.parse





Ahmet Kaymaz


http://www.ahmetkaymaz.com


C#, Asp.Net, Ajax, Sql Server, Oracle

Which convert function should we use in C# , why ?
It's a tomato/tomatoe question. Either will work fine, but if you use Convert() then it is more "standard and generic". Let's not forget about Cast() or tryCast() too...


No comments:

Post a Comment