String is the most basic data type in a variety of programming languages. It has been overwhelmed by other classes for a long time and is often disassociated (Substring, Split), torn (Join )...
Now the C # data type string is "turning over and making a revolution", and it is almost omnipotent. It can do whatever it wants, so that other types will be shocked...
Let's take a look at what string has done after the revolution?
1. Open a file or website
.Open();
Open(
2. file and directory operations
.WriteText(.DeleteFile();
CreateDirectory( WriteText( path, DeleteFile(
3. Execute the doscommand. Let's take a look at two simple
output1 = output2 = .ExecuteDOS();
ExecuteDOS( = = = = = = =
ExecuteDOS( cmd, = = = = = = = =
.ExecuteDOS();
4. Execute SQL
DbConnection conn = count = .ExecuteScalar(conn).Cast< >();
ExecuteScalar( (DbCommand cmd =====
T Cast< T>(
Now you can execute. The result is *** that more database operations can also be performed.