在我的ASP.net项目中,我需要为用户输入验证一些基本数据类型.数据类型类似于数字,小数,日期等.
在性能方面我应该采取的最佳方法是什么?它是通过做Regex.IsMatch()或TryParse()?
Regex.IsMatch()
TryParse()
提前致谢.
c# regex asp.net performance tryparse
asp.net ×1
c# ×1
performance ×1
regex ×1
tryparse ×1