Thursday, October 25, 2012

Build My StringBuilder site helps your turn text into StringBuilder code

ASP.NET Forums - Automatic Stringbuilder code creation

Hi all,

I got so sick of manually building Stringbuilder objects around queries and and other text over the years that I built a utility that will do it for you: http://www.buildmystring.com

Will do vb.net and c# (and java and c++, but you're hardly writing ASP.NET in either of those. And if you are, stop).

Jeff

BuildMyString.com

Wouldn't it be great to just paste your massive SQL query or other large block of text somewhere and then have a StringBuilder object magically form around it? (Answer: Yes it would be) Here you can automatically create StringBuilder objects. BuildMyString.com will take whatever text you input, escape your double quotes, escape your backslashes, and output automated StringBuilder code. If you find an issue or want to offer a change or enhancement idea, note it in the comments.

image

image

Now that's kind of neat (and something I think I can use soon... :)

2 comments:

  1. here are two easy ways to do something similar:

    http://blog.nitriq.com/UnderUsedVSFeatureColumnSelect.aspx

    http://www.regexpixie.com - Pixie makes it pretty easy to quickly format text.

    ReplyDelete
  2. I don't get it. If you've got the text, just stick it in a text file resource and call Properties.MyText. If you need to parameterise, call string.Format on it.

    ReplyDelete

NOTE: Anonymous Commenting has been turned off for a while... The comment spammers are just killing me...

ALL comments are moderated. I will review every comment before it will appear on the blog.

Your comment WILL NOT APPEAR UNTIL I approve it. This may take some hours...

I reserve, and will use, the right to not approve ANY comment for ANY reason. I will not usually, but if it's off topic, spam (or even close to spam-like), inflammatory, mean, etc, etc, well... then...

Please see my comment policy for more information if you are interested.

Thanks,
Greg

PS. I am proactively moderating comments. Your comment WILL NOT APPEAR UNTIL I approve it. This may take some hours...