What do you want to save?
Add Code snippet
New code examples in category C#
-
-
-
Roi 2021-08-28 01:21:01
List string to file C#
string[] lines = { "First line", "Second line", "Third line" }; System.IO.File.WriteAllLines(@"C:\Users\Public\TestFolder\WriteLines.txt", lines); lines = { "Fourth line", "Fith line" }; System.I... Add solution -
Guest1234321 2021-08-28 01:17:02
create a hash of an XML c#
System.Security.Cryptography.MACTripleDES hash = new System.Security.Cryptography.MACTripleDES(Encoding.Default.GetBytes("mykey")); string hashString = Convert.ToBase64String(hash.ComputeHash(Encoding.Default.GetBytes(myXMLString))); Add solution -
Resettarget 2021-08-27 23:03:01
vb.net yes no cancel
Dim result As DialogResult = MessageBox.Show("message", "caption", MessageBoxButtons.YesNoCancel) If result = DialogResult.Cancel Then MessageBox.Show("Cancel pressed") ElseIf result = DialogResult.No Then MessageBox.... Add solution