И второй попутный вопрос: правильно ли что dev и prod работают на одном и том же контейнере?
var x = 42;
var xType = x.GetType();
Console.WriteLine(xType.Name); // Int32
private static string GetCommandLine(this Process process)
{
using (ManagementObjectCollection objects = new ManagementObjectSearcher("SELECT CommandLine FROM Win32_Process WHERE ProcessId = " + process.Id).Get())
{
return objects.Cast<ManagementBaseObject>().SingleOrDefault()?["CommandLine"]?.ToString();
}
}
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Diagnostics;
using System.Management;
namespace ConsoleApplication7 {
class Program {
static void Main(string[] args) {
Process[] processList = Process.GetProcesses();
Process p = processList.Where(temp => temp.Id == 844).FirstOrDefault();
if (p != null) {
GetCommandLine(p.Id);
}
Console.ReadLine();
}
public static void GetCommandLine(int id) {
using (ManagementObjectSearcher mos = new ManagementObjectSearcher("SELECT CommandLine FROM Win32_Process WHERE ProcessId = " + id)) {
foreach (ManagementObject mo in mos.Get()) {
Console.WriteLine(mo["CommandLine"]);
}
}
}
}
}
TestCsharp.test.Test(); // Пардон, создавать экземпляр не обязательно, тк метод Test объявлен как static, но чтобы его можно было вызвать извне, надо его ещё и public сделать
WinDes.exe is a test container for the Windows Forms Designer. This application shipped with the Beta 1 version of the .NET Framework, but has been removed from Beta 2 and future releases of the .NET Framework. All the functionality of WinDes.exe is contained in the Visual Studio.NET Windows Forms Designers (both C# and Visual Basic). Visual Studio.NET should be used to create Windows Forms applications.
import os
os.system("chcp 65001");
print(""+chr(41)+chr(61)+chr(55))