Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
2
Task/String-length/C-sharp/string-length-1.cs
Normal file
2
Task/String-length/C-sharp/string-length-1.cs
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
string s = "Hello, world!";
|
||||
int characterLength = s.Length;
|
||||
4
Task/String-length/C-sharp/string-length-2.cs
Normal file
4
Task/String-length/C-sharp/string-length-2.cs
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
using System.Text;
|
||||
|
||||
string s = "Hello, world!";
|
||||
int byteLength = Encoding.Unicode.GetByteCount(s);
|
||||
1
Task/String-length/C-sharp/string-length-3.cs
Normal file
1
Task/String-length/C-sharp/string-length-3.cs
Normal file
|
|
@ -0,0 +1 @@
|
|||
int utf8ByteLength = Encoding.UTF8.GetByteCount(s);
|
||||
Loading…
Add table
Add a link
Reference in a new issue