Conversion between the data type of C # operation skills

xiaoxiao2021-03-06  42

The conversion between the data types in VB is very easy to CSTR, CINT, etc., we should be very clear when we use, now you can use C # to do web applications! In this way, we have a choice of language, plus there are still many people who have a lot of people on VB programming: (, they prefer C # to program, there are also many comrades to be unconventional! I also want to learn Learn C # language (such as tofu ..), this, the problem of data conversion is expecting! In addition, there are also transformations of String data types First let's take a look at the conversions between int and string int-> string, use toString Function, let's take a look at this example 1.tostring (), old days, such syntax can pass the identification :) This is the C # language String-> int there is a lot of choice (actually one), such as "12345" .Toint16 (), function, of course, similar functions, usage, usage

How to convert String into an array type according to the specified rule, "http://www.asp888.net tofu technology station" .split ("" .tochararay ())

How to convert the specified String into another string in a String, for example: "'" Convert "' '" We need to introduce a new Class StringBuilder here, let's take a look at this function