Object.setPrototypeOf(obj, {toString: () => 10});
new[] { lEntry.Message, lEntry.Sender, lEntry.Level }
.Any(x => x.Contains(searchText, StringComparsion.OrdinalIgnoreCase)
public static bool IsSubstringOfAny(this string search, params string[] samples) =>
samples.Any(x=>x.Contains(search, StringComparsion.OrdinalIgnoreCase));
одинаковые строчки кода с разных языков
они будут в двоичном все равно отличаться?
import pythoncom
import os
# pythoncom.CoInitialize() # remove the '#' at the beginning of the line if running in a thread.
desktop = r'C:\Users\Public\Desktop' # path to where you want to put the .lnk
path = os.path.join(desktop, 'NameOfShortcut.lnk')
target = r'C:\path\to\target\file.exe'
icon = r'C:\path\to\icon\resource.ico' # not needed, but nice
shell = win32com.client.Dispatch("WScript.Shell")
shortcut = shell.CreateShortCut(path)
shortcut.Targetpath = target
shortcut.IconLocation = icon
shortcut.WindowStyle = 7 # 7 - Minimized, 3 - Maximized, 1 - Normal
shortcut.save()
from swinlnk.swinlnk import SWinLnk
swl = SWinLnk()
swl.create_lnk('W:\Foo\Bar', '/mnt/win_share/playground/Bar_winlink.lnk')