I know a few ways how to check this.
regex,int.parse
,tryparse
,looping.
can anyone tell me what is the fastest way to check?
the need is to only CHECK no need to actually parse.
this is not the same question as: How do I identify if a string is a number?
the question is not only about how identify.
but about what is the fastest method.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…