Manage PlItems

You may optionally enter a comparison operator (<, <=, >, >=, <> or =) at the beginning of each of your search values to specify how the comparison should be done.

Advanced Search
Displaying 171-180 of 300 results.
IDPlCodelangPlGroupPlItemTitleCode 
 
100C#SonstigesStartet die aktuelle Applikation neuvoid RestartApplication() { string[] FullNameSplit = Application.ResourceAssembly.FullName.Split((char)44); Process.Start(FullNameSplit[0] + ".exe"); Application.Current.Shutdown(); }View Update Delete
101C#SonstigesGibt die Version der aktuellen Applikation als string zurückprivate string GetApplicationVersion() { string[] FullNameSplit = Application.ResourceAssembly.FullName.Split((char)44); return FullNameSplit[1].Replace("Version=", string.Empty).Trim(); }View Update Delete
102C#StringsPrüfen ob String einen Integerwert istprivate bool IsInteger(string inputString) { int i; return int.TryParse(inputString, out i); }View Update Delete
103C#StringsString mit bestimmter Länger generierenstring CreateStringLength(int length) { try { string tempString = Guid.NewGuid().ToString().ToLower(); tempString = tempString.Replace("-", string.Empty); while (tempString.Length < length) { tempString += tempString; } tempString = tempString.Substring(0, length); return tempString; } catch { MessageBox.Show("Zu wenig Zwichenspeicher verfügbar!"); return string.Empty; } }View Update Delete
104C#SonstigesGibt den Temporären Ordner des System zurückstring sysTempPath = System.IO.Path.GetTempPath();View Update Delete
105C#NetzwerkDownloaden einer Dateiprivate void DownloadFile(string url, string targetFilePath) { WebClient webClient = new WebClient(); webClient.DownloadFileAsync(new Uri(url), targetFilePath); }View Update Delete
107C#SonstigesArbeiten mit der Zwichenablage (Clipboard)Clipboard.SetText("Text..."); string myString = Clipboard.GetText();View Update Delete
108C#StringsStrings miteinander verbindenstring myString = "!"; String.Concat("Hallo ", "Welt ", myString);View Update Delete
109C#DateihandlingDateinamen aus kompletten Pfad extrahierenstring filename = Path.GetFileName(fileNameWithPath);View Update Delete
126C#Encoding / DecodingDatei nach Base64 encodierenmyfile = "myPDF.pdf"; string ReturnValue = ""; if (System.IO.File.Exists(myfile)) { using (FileStream BinaryFile = new FileStream(myfile, FileMode.Open)) { BinaryReader BinRead = new BinaryReader(BinaryFile); byte[] BinBytes = BinRead.ReadBytes(Convert.ToInt32(BinaryFile.Length)); ReturnValue = Convert.ToBase64String(BinBytes); BinaryFile.Close(); } }View Update Delete