Determine incorrect String.Format format
C#
2
Posts
2
Posters
0
Views
1
Watching
-
Hi All, is there way (except running the method in try - catch block) how to determine (without considering the input arguments) if a format string is correct? String.Format(string format, params object[] argumens); thanks, Stevo
zilo
You could probably use a RegularExpression. I'd stick with Try/Catch, as you'd likely need it anyway.