Installation des .NET 10 Preview SDK unter Linux (Ubuntu, Mint...)
- Download der gewünschten Preview Version: z.B. https://dotnet.microsoft.com/en-us/download/dotnet/10.0
- Entpacken des Archivs in den Dotnet-Ordner, z.B. $HOME/.dotnet
using System; | |
using System.Linq; | |
using System.Collections.Generic; | |
using static System.Console; | |
char[] SEPARATORS = [',', '.',';','!','?',' ','\n', '\r']; | |
WriteLine ("Hello Everybody!"); |
public sealed class MessageBus | |
{ | |
//------------------------------------------------------------------------- | |
private readonly Dictionary <string, object> _bus = new (); | |
//------------------------------------------------------------------------- | |
/// <summary> | |
/// Subscribes a receiver to a channel in the message bus. |
using System; | |
using System.Text.Json; | |
using System.IO; | |
using System.Text; | |
public sealed class Configuration | |
{ | |
//------------------------------------------------------------------------- | |
/* | |
Functional approach using OneOf-pattern | |
(Discriminated Unions) | |
for example | |
https://www.youtube.com/watch?v=exsfSEDeyF4&t=715s | |
(c) Thomas Schröter / github: tomschrot | |
*/ |
using System; | |
// namespace | |
#nullable enable | |
public sealed class Option <T> | |
where T: class | |
{ | |
//------------------------------------------------------------------------- | |
Installation des .NET 10 Preview SDK unter Linux (Ubuntu, Mint...)
using System.Collections.Generic; | |
using System.Text; | |
using System; | |
using myLibrary.Infrastructure.Extensions; | |
Console.WriteLine ("Console Application Template for VS Code\nby Tom Schröter"); | |
var c = AoutB (6, 49); |
using System.Collections.Generic; | |
using System.Text; | |
using System; | |
using myLibrary.Infrastructure.Extensions; | |
Console.WriteLine ("Console Application Template for VS Code\nby Tom Schröter"); | |
string name = "Donald"; |
public class Database: IDisposable | |
{ | |
public static fnOpen? begin(string dbProvider) => new Database().Open; | |
public delegate fnResume? fnOpen (string connection); | |
public delegate fnQuery? fnResume (Action<string> onError); | |
public delegate fnResume? fnQuery (string query, Action onResult = null); | |
public fnQuery? Resume (Action<string> onError) | |
{ |
namespace Infrastructure.DPInject; | |
public sealed class Container | |
{ | |
private readonly Dictionary <string, dynamic> _items = new (); | |
internal Container () {} | |
public dynamic this [string name] |