Programming Tutorial On The Way

free online programming resource on dotnet, csharp, web related topics

There are a several built-in static methods on the System.Char structure to determine the kind of character. The table below lists the static methods. Read the rest of this entry »

Popularity: 1% [?]

You have a string that contains information such as a bitmap encoded as base64. You need to decode this data (which may have been embedded in an email message) from a string into a byte[] so that you can access the original binary. Read the rest of this entry »

Popularity: 1% [?]

Creating a Delimited String

Sometimes you will have an array of string that you need to concatenate in a string with delimiter. The static Join method of the string class can easily join the array of strings in as little as one line of code. For example: Read the rest of this entry »

Popularity: 1% [?]

In writing program, data type conversion is very common, especially when you have the user input value in string. This string value may represent the equivalent value of a number (”12″), char (”a”), bool (”true“), or a color enumeration (”Red”). You need to convert this string to its equivalent value type. Therefore, the number “12″ would be converted to a numeric value such as int, short, float, etc. The string “a” would be converted to a char value ‘a’, the string “true” would be converted to a bool value, and the color “Red” could be converted to an enumeration value (if an enumeration were defined that contained the element Red) Read the rest of this entry »

Popularity: 1% [?]

A character can be checked whether it is within a specific range. This can be easily done because each char represent the integer value. You can use the built-in comparison support for the char data type. The code below shows the example of this. Read the rest of this entry »

Popularity: 1% [?]

  Next Entries »