What do you want to save?
Add Code snippet
New code examples
-
C# 2022-02-20 02:20:05
c# wpf kill processes by username
using System.Security.Principal; using System.Runtime.InteropServices; public class ProcessManager { public static void KillProcessByNameAndUserName(string processName, string userName) { var processes = from p in Process.GetProcessesByName... Add solution -
C# 2022-02-18 01:00:19
c# substring reverse
public static string ToReverseString(this string value) { return string.Join("", value.Reverse()); } public static string SubstringReverse(this string value, int indexFromEnd, int length) { return value.ToReverseString().Substring(indexFrom... Add solution -
C# 2022-02-17 18:15:26
indexof c#
// To find the index of the first substring in a string use // 'IndexOf()' string str = "Hello World!" str.IndexOf("o"); // Output: 4 // You can give a starting index and a length to search at str.IndexOf("o", 6, 4); // Outp... Add solution