Snippets of the day – Wednesday, March 19, 2014

Posted on Posted in Snippets

code-snippet-2

Here are some of the most recently published snippets!

C#: How to sanitize a string from unwanted characters

This method defines a set of admitted characters (see ‘admtted’ string) and substitute the characters not belonging to admitted string with the ne provided in ‘subchar’ paraemter, or skip it if skip=true

Open the snippet

Author:    cghersi

C#: how to wrap a text inside a given length

This method helps in wrapping the given text moving the word that pass the threshold to the next line

Open the snippet

Author:    cghersi

C#: Convert Extensions to MIME types

This is a large set of extensions that can be converted in vlid MIME Types

Open the snippet

Author:    cghersi

Leave a Reply

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