Expansive 1.5 Released

Yesterday, I blogged about my new .NET string expansion library called Expansive.

Today, I made some key changes to, hopefully, make it easier to use and more flexible by providing 4 token style format providers out of the box.

  • Removed the startToken and endToken delimiters that could be set by the consumer as this was unreliable
  • Added 4 new Token Style Formats to pick from:
    • MvcRoute Style “{token}” (default)
    • Razor Style “@token” or “@(token)”
    • NAnt Style “${token}”
    • MSBuild Style “$(token)”

So, the following are all valid:

You can also specify the TokenStyle on the call to Expand() such as:

The addition of TokenStyle makes the API a little cleaner and provide 4 popular token formats.

You can of course add your own by grabbing the source on GitHub and opening the hood.


Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code class="" title="" data-url=""> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre class="" title="" data-url=""> <span class="" title="" data-url="">