Getting rid of strings (3): take your app settings to the next level (blog.andreloker.de)

published 1 year, 5 months ago, submitted by alokeraloker(1780) 1 year, 5 months ago

In the first article of this series I talked about the problems with strings in code. This article will show you how you can use lambda expressions and expression trees as another tool to avoid strings

2 comments | category: | Views: 754

tags: another

new Add a live kick counter to your blog >> liveImage

You can even customize the image by choosing your own colors, and then clicking the button below to update the preview and the html code:

  • "Kick It" text
  • "Kick It" background
  • kick count text
  • kick count background
  • border

Simply copy and paste this HTML into your blog post.


Users who kicked this story:

Comments:

posted by alokeraloker(1780) 1 year, 5 months ago

I just realized that I added the wrong description. The description was meant to be:
"In the previous parts of this series I talked about the problems with literal strings in source code and presented different strategies to avoid those problems. In this episode I'll explain how we can leverage the power of the Castle DictionaryAdapter to improve the way our applications access their app settings"

Sorry for my sloppiness ;)

posted by aquinasaquinas(20) 1 year, 5 months ago

Also you can use a settings file. Right click on your project and go to add new item "Settings File". You get strongly typed settings. And a handy dandy gui interface too.

information Login or create an account to comment on this story