chmod a+x winetricks
./winetricks
. winetricks
var test = new[] { 1, 2, 3 };
var objectTest = (object)test;
var x = objectTest as Array;
foreach (var e in x)
Console.WriteLine(e);
var test = new[] { 1, 2, 3 };
var objectTest = (object)test;
//var test3 = (object[])objectTest; // Не работает, выдаёт InvalidCastException
var a = System.Text.Json.JsonSerializer.Serialize(objectTest);
var b = System.Text.Json.JsonSerializer.Deserialize<object[]>(a);
foreach (var e in b)
Console.WriteLine(e);
using GLib;
namespace test;
public class Program
{
public static void Main()
{
var fileName = FileFactory.NewFromCommandlineArg("test.txt");
var fileAdapter = new FileAdapter(fileName.Handle);
fileAdapter.Trash(null);
}
}