All the spinners iv'e tried have been so bad. I hope this changes that!
bbrez1, You WIN the BHW nifty tools award for 2010! CROWN HIM NOW!
These tools are so simple and to the point, in a world where people tend to over-complicate things, less is sometimes definitely better.
//count number of {
int iValidateBegin = sString.Count(f => f == '{');
//count number of }
int iValidateEnd = sString.Count(f => f == '}');
//if the numbers aren't the same, means something is missing
if (iValidateBegin != iValidateEnd)
throw new Exception("Number of delimiters '{' '}' found is not correct");
bool bValidateBadCombination = sString.Contains("{|") || sString.Contains("|}");
//if true means that there are bad combinations!
if (bValidateChar)
throw new Exception("Wrong format found \" {| or |} \"");
i would really love the user defined synonym database![]()