diff --git a/TestStatements/AppWithPlugin/AppWithPlugin.csproj b/TestStatements/AppWithPlugin/AppWithPlugin.csproj
new file mode 100644
index 000000000..953baeded
--- /dev/null
+++ b/TestStatements/AppWithPlugin/AppWithPlugin.csproj
@@ -0,0 +1,21 @@
+
+
+
+
+
+ Exe
+ net6.0;net7.0;net8.0;net9.0
+ enable
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/TestStatements/AppWithPlugin/Model/AppWithPlugin.cs b/TestStatements/AppWithPlugin/Model/AppWithPlugin.cs
new file mode 100644
index 000000000..3299a3ade
--- /dev/null
+++ b/TestStatements/AppWithPlugin/Model/AppWithPlugin.cs
@@ -0,0 +1,149 @@
+using CommunityToolkit.Mvvm.Messaging;
+using Microsoft.Extensions.DependencyInjection;
+using Microsoft.Extensions.Logging;
+using PluginBase.Interfaces;
+using System;
+using System.Collections.Generic;
+using System.IO;
+using System.Linq;
+using System.Reflection;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace AppWithPlugin.Model;
+
+public class AppWithPlugin : IEnvironment, IUserInterface
+{
+ static Assembly LoadPlugin(string relativePath)
+ {
+ // Navigate up to the solution root
+ string root = Path.GetFullPath(Path.Combine(
+ Path.GetDirectoryName(
+ Path.GetDirectoryName(
+ Path.GetDirectoryName(
+ Path.GetDirectoryName(typeof(Program).Assembly.Location))))));
+
+ string pluginLocation = Path.GetFullPath(Path.Combine(root, relativePath.Replace('\\', Path.DirectorySeparatorChar),"Debug", "net6.0"));
+ Console.WriteLine($"Loading commands from: {pluginLocation}");
+ PluginLoadContext loadContext = new PluginLoadContext(pluginLocation);
+ return loadContext.LoadFromAssemblyPath(Path.Combine(pluginLocation,relativePath)+".dll");
+ }
+
+ static IEnumerable CreateCommands(Assembly assembly,IEnvironment env)
+ {
+ int count = 0;
+
+ foreach (Type type in assembly.GetTypes())
+ {
+ if (typeof(ICommand).IsAssignableFrom(type))
+ {
+ ICommand result = Activator.CreateInstance(type) as ICommand;
+ if (result != null)
+ {
+ result.Initialize(env);
+ count++;
+ yield return result;
+ }
+ }
+ }
+
+ if (count == 0)
+ {
+ string availableTypes = string.Join(",", assembly.GetTypes().Select(t => t.FullName));
+ throw new ApplicationException(
+ $"Can't find any type which implements ICommand in {assembly} from {assembly.Location}.\n" +
+ $"Available types: {availableTypes}");
+ }
+ }
+
+ IEnumerable? commands;
+ private IMessenger? _messanger;
+ private IServiceProvider? _sp;
+
+ public IData data { get => throw new NotImplementedException(); }
+ public IUserInterface ui { get => this; }
+ public IMessenger messaging { get => _messanger ?? new WeakReferenceMessenger(); }
+ public string Title { get => throw new NotImplementedException(); set => throw new NotImplementedException(); }
+
+ public void Initialize(string[] args)
+ {
+ _sp = new ServiceCollection()
+ .AddTransient()
+ .AddTransient()
+ .AddSingleton()
+ .BuildServiceProvider();
+
+
+ string[] pluginPaths =
+ [
+ "HelloPlugin"
+ ];
+
+ commands = pluginPaths.SelectMany(pluginPath =>
+ {
+ Assembly pluginAssembly = LoadPlugin(pluginPath);
+ return CreateCommands(pluginAssembly,this);
+ }).ToList();
+ Console.WriteLine("AppWithPlugin is initialized.");
+ }
+
+ public void Main(string[] args)
+ {
+ try
+ {
+ if (args.Length == 1 && args[0] == "/d")
+ {
+ Console.WriteLine("Waiting for any key...");
+ Console.ReadLine();
+ }
+
+
+ if (args.Length == 0)
+ {
+ Console.WriteLine("Commands: ");
+ foreach (ICommand command in commands)
+ {
+ Console.WriteLine($"{command.Name}\t - {command.Description}");
+ }
+ }
+ else
+ {
+ foreach (string commandName in args)
+ {
+ Console.WriteLine($"-- {commandName} --");
+
+ ICommand command = commands.FirstOrDefault(c => c.Name.ToUpper() == commandName.ToUpper());
+ if (command == null)
+ {
+ Console.WriteLine("No such command is known.");
+ return;
+ }
+
+ command.Execute();
+
+ Console.WriteLine();
+ }
+ }
+ }
+ catch (Exception ex)
+ {
+ Console.WriteLine(ex);
+ }
+ }
+
+ public T? GetService()
+ {
+ return _sp.GetService();
+ }
+
+ public bool AddService(T service)
+ {
+ throw new NotImplementedException();
+ }
+
+ public bool ShowMessage(string message)
+ {
+ Console.WriteLine(message);
+ return true;
+ }
+}
diff --git a/TestStatements/AppWithPlugin/Model/Logging.cs b/TestStatements/AppWithPlugin/Model/Logging.cs
new file mode 100644
index 000000000..93369516e
--- /dev/null
+++ b/TestStatements/AppWithPlugin/Model/Logging.cs
@@ -0,0 +1,24 @@
+using Microsoft.Extensions.Logging;
+using System;
+using System.Diagnostics;
+
+namespace AppWithPlugin.Model
+{
+ public class Logging : ILogger
+ {
+ public IDisposable? BeginScope(TState state) where TState : notnull
+ {
+ throw new NotImplementedException();
+ }
+
+ public bool IsEnabled(LogLevel logLevel)
+ {
+ throw new NotImplementedException();
+ }
+
+ public void Log(LogLevel logLevel, EventId eventId, TState state, Exception? exception, Func formatter)
+ {
+ Debug.WriteLine($"[{logLevel}] {eventId.Id} {formatter(state, exception)}");
+ }
+ }
+}
\ No newline at end of file
diff --git a/TestStatements/AppWithPlugin/Model/PluginLoadContext.cs b/TestStatements/AppWithPlugin/Model/PluginLoadContext.cs
new file mode 100644
index 000000000..57514b2c6
--- /dev/null
+++ b/TestStatements/AppWithPlugin/Model/PluginLoadContext.cs
@@ -0,0 +1,41 @@
+using System;
+using System.Reflection;
+using System.Runtime.Loader;
+
+namespace AppWithPlugin.Model;
+
+class PluginLoadContext : AssemblyLoadContext
+{
+ private AssemblyDependencyResolver _resolver;
+
+ public PluginLoadContext(string pluginPath)
+ {
+ _resolver = new AssemblyDependencyResolver(pluginPath);
+ }
+
+ protected override Assembly? Load(AssemblyName assemblyName)
+ {
+ string? assemblyPath = _resolver.ResolveAssemblyToPath(assemblyName);
+ if (assemblyPath != null)
+ {
+ return LoadFromAssemblyPath(assemblyPath);
+ }
+
+ return null;
+ }
+
+ protected override nint LoadUnmanagedDll(string unmanagedDllName)
+ {
+ string? libraryPath = _resolver.ResolveUnmanagedDllToPath(unmanagedDllName);
+ if (libraryPath != null)
+ {
+ return LoadUnmanagedDllFromPath(libraryPath);
+ }
+
+#if NET7_0_OR_GREATER
+ return nint.Zero;
+#else
+ return IntPtr.Zero;
+#endif
+ }
+}
\ No newline at end of file
diff --git a/TestStatements/AppWithPlugin/Model/Random.cs b/TestStatements/AppWithPlugin/Model/Random.cs
new file mode 100644
index 000000000..e19aafab1
--- /dev/null
+++ b/TestStatements/AppWithPlugin/Model/Random.cs
@@ -0,0 +1,47 @@
+using PluginBase.Interfaces;
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace AppWithPlugin.Model;
+
+public class Random : IRandom
+{
+ private System.Random _random;
+
+ public Random()
+ {
+ _random = new System.Random();
+ }
+ public int Next()
+ {
+ return _random.Next();
+ }
+
+ public int Next(int maxValue)
+ {
+ return _random.Next(maxValue);
+ }
+
+ public int Next(int minValue, int maxValue)
+ {
+ return _random.Next(minValue, maxValue);
+ }
+
+ public void NextBytes(byte[] buffer)
+ {
+ _random.NextBytes(buffer);
+ }
+
+ public double NextDouble()
+ {
+ return _random.NextDouble();
+ }
+
+ public void Seed(int seed)
+ {
+ _random = new System.Random(seed);
+ }
+}
diff --git a/TestStatements/AppWithPlugin/Model/SysTime.cs b/TestStatements/AppWithPlugin/Model/SysTime.cs
new file mode 100644
index 000000000..34352f51b
--- /dev/null
+++ b/TestStatements/AppWithPlugin/Model/SysTime.cs
@@ -0,0 +1,14 @@
+using PluginBase.Interfaces;
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace AppWithPlugin.Model
+{
+ public class SysTime : ISysTime
+ {
+ public DateTime Now => DateTime.Now;
+ }
+}
diff --git a/TestStatements/AppWithPlugin/Program.cs b/TestStatements/AppWithPlugin/Program.cs
new file mode 100644
index 000000000..bd99bd84e
--- /dev/null
+++ b/TestStatements/AppWithPlugin/Program.cs
@@ -0,0 +1,18 @@
+using PluginBase;
+using System;
+using System.Collections.Generic;
+using System.IO;
+using System.Linq;
+using System.Reflection;
+
+namespace AppWithPlugin;
+
+public class Program
+{
+ public static void Main(string[] args)
+ {
+ var app = new Model.AppWithPlugin();
+ app.Initialize(args);
+ app.Main(args);
+ }
+}
\ No newline at end of file
diff --git a/TestStatements/AppWithPlugin/Properties/launchSettings.json b/TestStatements/AppWithPlugin/Properties/launchSettings.json
new file mode 100644
index 000000000..d45b1142d
--- /dev/null
+++ b/TestStatements/AppWithPlugin/Properties/launchSettings.json
@@ -0,0 +1,23 @@
+{
+ "profiles": {
+ "AppWithPlugin": {
+ "commandName": "Project"
+ },
+ "WSL": {
+ "commandName": "WSL2",
+ "distributionName": ""
+ },
+ "AppWithPlugin /d": {
+ "commandName": "Project",
+ "commandLineArgs": "/d"
+ },
+ "AppWithPlugin Hello": {
+ "commandName": "Project",
+ "commandLineArgs": "Hello"
+ },
+ "Profil \"1\"": {
+ "commandName": "Project",
+ "commandLineArgs": "Test"
+ }
+ }
+}
\ No newline at end of file
diff --git a/TestStatements/AsyncExampleWPF/App.xaml.cs b/TestStatements/AsyncExampleWPF/App.xaml.cs
index f91772cc7..1ac9d4a8f 100644
--- a/TestStatements/AsyncExampleWPF/App.xaml.cs
+++ b/TestStatements/AsyncExampleWPF/App.xaml.cs
@@ -1,10 +1,4 @@
-using System;
-using System.Collections.Generic;
-using System.Configuration;
-using System.Data;
-using System.Linq;
-using System.Threading.Tasks;
-using System.Windows;
+using System.Windows;
namespace AsyncExampleWPF
{
diff --git a/TestStatements/AsyncExampleWPF/AsyncExampleWPF.csproj b/TestStatements/AsyncExampleWPF/AsyncExampleWPF.csproj
index f18a8aad8..c45fcbb05 100644
--- a/TestStatements/AsyncExampleWPF/AsyncExampleWPF.csproj
+++ b/TestStatements/AsyncExampleWPF/AsyncExampleWPF.csproj
@@ -4,7 +4,7 @@
WinExe
- net462-windows;net472-windows;net48-windows;net481-windows
+ net462-windows;net472-windows;net481-windows
true
diff --git a/TestStatements/AsyncExampleWPF/AsyncExampleWPF_net.csproj b/TestStatements/AsyncExampleWPF/AsyncExampleWPF_net.csproj
index dcb7be3de..564ee5fc0 100644
--- a/TestStatements/AsyncExampleWPF/AsyncExampleWPF_net.csproj
+++ b/TestStatements/AsyncExampleWPF/AsyncExampleWPF_net.csproj
@@ -6,7 +6,6 @@
WinExe
net6.0-windows;net7.0-windows;net8.0-windows
true
- 12.0
diff --git a/TestStatements/AsyncExampleWPF/MainWindow.xaml.cs b/TestStatements/AsyncExampleWPF/MainWindow.xaml.cs
index 7afcfa672..dc109ce41 100644
--- a/TestStatements/AsyncExampleWPF/MainWindow.xaml.cs
+++ b/TestStatements/AsyncExampleWPF/MainWindow.xaml.cs
@@ -8,10 +8,7 @@
using System.Net;
using System.IO;
using System.Linq;
-using System.Threading;
using System.Diagnostics;
-using System.Security.Policy;
-using System.Collections;
namespace AsyncExampleWPF
{
diff --git a/TestStatements/CallAllExamples/CallAllExamples_net.csproj b/TestStatements/CallAllExamples/CallAllExamples_net.csproj
index eea8645c7..b54b85563 100644
--- a/TestStatements/CallAllExamples/CallAllExamples_net.csproj
+++ b/TestStatements/CallAllExamples/CallAllExamples_net.csproj
@@ -5,7 +5,6 @@
Exe
net6.0;net7.0;net8.0
- 12.0
diff --git a/TestStatements/DynamicSample/Constants/Constants.cs b/TestStatements/DynamicSample/Constants/Constants.cs
index f69c28682..2714ba966 100644
--- a/TestStatements/DynamicSample/Constants/Constants.cs
+++ b/TestStatements/DynamicSample/Constants/Constants.cs
@@ -1,10 +1,4 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-
-namespace DynamicSample.Constants
+namespace DynamicSample.Constants
{
///
/// Class Constants.
diff --git a/TestStatements/DynamicSample/DynamicSample_net.csproj b/TestStatements/DynamicSample/DynamicSample_net.csproj
index 36cbfa4c0..bf71c9f1d 100644
--- a/TestStatements/DynamicSample/DynamicSample_net.csproj
+++ b/TestStatements/DynamicSample/DynamicSample_net.csproj
@@ -5,7 +5,6 @@
Exe
net6.0;net7.0;net8.0
- 12.0
diff --git a/TestStatements/DynamicSample/Model/StatPropertyClass.cs b/TestStatements/DynamicSample/Model/StatPropertyClass.cs
index 5758f96b6..8eb5fdf51 100644
--- a/TestStatements/DynamicSample/Model/StatPropertyClass.cs
+++ b/TestStatements/DynamicSample/Model/StatPropertyClass.cs
@@ -1,10 +1,4 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-
-namespace DynamicSample.Model
+namespace DynamicSample.Model
{
///
/// Class StatPropertyClass.
diff --git a/TestStatements/HelloPlugin/HelloPlugin.csproj b/TestStatements/HelloPlugin/HelloPlugin.csproj
new file mode 100644
index 000000000..70cf32c95
--- /dev/null
+++ b/TestStatements/HelloPlugin/HelloPlugin.csproj
@@ -0,0 +1,36 @@
+
+
+
+
+
+ net6.0;net7.0;net8.0;net9.0
+ enable
+ true
+
+
+
+
+
+
+
+
+ false
+ runtime
+
+
+
+
+ True
+ True
+ Resources.resx
+
+
+
+
+ PublicResXFileCodeGenerator
+ Resources.Designer.cs
+
+
+
+
+
diff --git a/TestStatements/HelloPlugin/Model/HelloCommand.cs b/TestStatements/HelloPlugin/Model/HelloCommand.cs
new file mode 100644
index 000000000..79f2ea42f
--- /dev/null
+++ b/TestStatements/HelloPlugin/Model/HelloCommand.cs
@@ -0,0 +1,24 @@
+using System;
+using HelloPlugin.Properties;
+using PluginBase.Interfaces;
+
+namespace HelloPlugin.Model;
+
+public class HelloCommand : ICommand
+{
+ private IEnvironment? _env;
+
+ public string Name { get => "hello"; }
+ public string Description { get => Resources.helloDescription; }
+
+ public void Initialize(IEnvironment env)
+ {
+ _env = env;
+ }
+
+ public int Execute()
+ {
+ _env?.ui.ShowMessage(Resources.msgHello);
+ return 0;
+ }
+}
diff --git a/TestStatements/HelloPlugin/Model/TestCommand.cs b/TestStatements/HelloPlugin/Model/TestCommand.cs
new file mode 100644
index 000000000..aab0f37a4
--- /dev/null
+++ b/TestStatements/HelloPlugin/Model/TestCommand.cs
@@ -0,0 +1,38 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+using HelloPlugin.Properties;
+using Microsoft.Extensions.Logging;
+using PluginBase.Interfaces;
+
+namespace HelloPlugin.Model;
+
+public class TestCommand : ICommand
+{
+ private IEnvironment? _env;
+ private IRandom? _rnd;
+ private ILogger? _logger;
+ private ISysTime? _time;
+
+ public string Name { get => "test"; }
+ public string Description { get => Resources.testDescription; }
+ public void Initialize(IEnvironment env)
+ {
+ _env = env;
+ _rnd = _env.GetService();
+ _logger = _env.GetService();
+ _time = _env.GetService();
+ }
+
+ public int Execute()
+ {
+ _logger?.LogDebug($"{nameof(TestCommand)}.{nameof(Execute)}");
+ _env?.ui.ShowMessage(Resources.msgTest);
+ _env?.ui.ShowMessage(string.Format(Resources.msgRandom,[_rnd?.Next()]));
+ _env?.ui.ShowMessage(string.Format(Resources.msgCurrentTime,[_time?.Now]));
+ return 0;
+ }
+}
+
diff --git a/TestStatements/HelloPlugin/Properties/Resources.Designer.cs b/TestStatements/HelloPlugin/Properties/Resources.Designer.cs
new file mode 100644
index 000000000..e63e172e9
--- /dev/null
+++ b/TestStatements/HelloPlugin/Properties/Resources.Designer.cs
@@ -0,0 +1,117 @@
+//------------------------------------------------------------------------------
+//
+// Dieser Code wurde von einem Tool generiert.
+// Laufzeitversion:4.0.30319.42000
+//
+// Änderungen an dieser Datei können falsches Verhalten verursachen und gehen verloren, wenn
+// der Code erneut generiert wird.
+//
+//------------------------------------------------------------------------------
+
+namespace HelloPlugin.Properties {
+ using System;
+
+
+ ///
+ /// Eine stark typisierte Ressourcenklasse zum Suchen von lokalisierten Zeichenfolgen usw.
+ ///
+ // Diese Klasse wurde von der StronglyTypedResourceBuilder automatisch generiert
+ // -Klasse über ein Tool wie ResGen oder Visual Studio automatisch generiert.
+ // Um einen Member hinzuzufügen oder zu entfernen, bearbeiten Sie die .ResX-Datei und führen dann ResGen
+ // mit der /str-Option erneut aus, oder Sie erstellen Ihr VS-Projekt neu.
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "17.0.0.0")]
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
+ public class Resources {
+
+ private static global::System.Resources.ResourceManager resourceMan;
+
+ private static global::System.Globalization.CultureInfo resourceCulture;
+
+ [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")]
+ internal Resources() {
+ }
+
+ ///
+ /// Gibt die zwischengespeicherte ResourceManager-Instanz zurück, die von dieser Klasse verwendet wird.
+ ///
+ [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
+ public static global::System.Resources.ResourceManager ResourceManager {
+ get {
+ if (object.ReferenceEquals(resourceMan, null)) {
+ global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("HelloPlugin.Properties.Resources", typeof(Resources).Assembly);
+ resourceMan = temp;
+ }
+ return resourceMan;
+ }
+ }
+
+ ///
+ /// Überschreibt die CurrentUICulture-Eigenschaft des aktuellen Threads für alle
+ /// Ressourcenzuordnungen, die diese stark typisierte Ressourcenklasse verwenden.
+ ///
+ [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
+ public static global::System.Globalization.CultureInfo Culture {
+ get {
+ return resourceCulture;
+ }
+ set {
+ resourceCulture = value;
+ }
+ }
+
+ ///
+ /// Sucht eine lokalisierte Zeichenfolge, die Gives the message: Hello World ! ähnelt.
+ ///
+ public static string helloDescription {
+ get {
+ return ResourceManager.GetString("helloDescription", resourceCulture);
+ }
+ }
+
+ ///
+ /// Sucht eine lokalisierte Zeichenfolge, die Current time: {0} ähnelt.
+ ///
+ public static string msgCurrentTime {
+ get {
+ return ResourceManager.GetString("msgCurrentTime", resourceCulture);
+ }
+ }
+
+ ///
+ /// Sucht eine lokalisierte Zeichenfolge, die Hello World ! ähnelt.
+ ///
+ public static string msgHello {
+ get {
+ return ResourceManager.GetString("msgHello", resourceCulture);
+ }
+ }
+
+ ///
+ /// Sucht eine lokalisierte Zeichenfolge, die Random number: {0} ähnelt.
+ ///
+ public static string msgRandom {
+ get {
+ return ResourceManager.GetString("msgRandom", resourceCulture);
+ }
+ }
+
+ ///
+ /// Sucht eine lokalisierte Zeichenfolge, die A test ! ähnelt.
+ ///
+ public static string msgTest {
+ get {
+ return ResourceManager.GetString("msgTest", resourceCulture);
+ }
+ }
+
+ ///
+ /// Sucht eine lokalisierte Zeichenfolge, die Gives some test-messages e.G: a log-entry, a random number, the actual date ... ähnelt.
+ ///
+ public static string testDescription {
+ get {
+ return ResourceManager.GetString("testDescription", resourceCulture);
+ }
+ }
+ }
+}
diff --git a/TestStatements/HelloPlugin/Properties/Resources.de.resx b/TestStatements/HelloPlugin/Properties/Resources.de.resx
new file mode 100644
index 000000000..c289c2b9f
--- /dev/null
+++ b/TestStatements/HelloPlugin/Properties/Resources.de.resx
@@ -0,0 +1,140 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ text/microsoft-resx
+
+
+ 2.0
+
+
+ System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
+ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
+ Zeigt die Nachricht: Hallo Welt !
+ Description of hello-command
+
+
+ Aktuelle Zeit: {0}
+
+
+ Hallo Welt !
+
+
+ Zufallszahl: {0}
+
+
+ Test !
+
+
+ Zeigt Testnachrichten: z.B: Einen Log-Eintrag, eine Zufallszahl, die aktuelle Zeit ...
+ Description of test-command
+
+
\ No newline at end of file
diff --git a/TestStatements/HelloPlugin/Properties/Resources.en.resx b/TestStatements/HelloPlugin/Properties/Resources.en.resx
new file mode 100644
index 000000000..b0a28cf07
--- /dev/null
+++ b/TestStatements/HelloPlugin/Properties/Resources.en.resx
@@ -0,0 +1,140 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ text/microsoft-resx
+
+
+ 2.0
+
+
+ System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
+ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
+ Gives the message: Hello World !
+ Description of hello-command
+
+
+ Current time: {0}
+
+
+ Hello World !
+
+
+ Random number: {0}
+
+
+ A test !
+
+
+ Gives some test-messages e.G: a log-entry, a random number, the actual date ...
+ Description of test-command
+
+
\ No newline at end of file
diff --git a/TestStatements/HelloPlugin/Properties/Resources.fr.resx b/TestStatements/HelloPlugin/Properties/Resources.fr.resx
new file mode 100644
index 000000000..7f123410b
--- /dev/null
+++ b/TestStatements/HelloPlugin/Properties/Resources.fr.resx
@@ -0,0 +1,140 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ text/microsoft-resx
+
+
+ 2.0
+
+
+ System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
+ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
+ Gives the message: Hello World !
+ Description of hello-command
+
+
+ Current time: {0}
+
+
+ Hello World !
+
+
+ Random number {0}
+
+
+ Test !
+
+
+ Gives some test-messages e.G: a log-entry, a random number, the actual date ...
+ Description of test-command
+
+
\ No newline at end of file
diff --git a/TestStatements/HelloPlugin/Properties/Resources.resx b/TestStatements/HelloPlugin/Properties/Resources.resx
new file mode 100644
index 000000000..b0a28cf07
--- /dev/null
+++ b/TestStatements/HelloPlugin/Properties/Resources.resx
@@ -0,0 +1,140 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ text/microsoft-resx
+
+
+ 2.0
+
+
+ System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
+ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
+ Gives the message: Hello World !
+ Description of hello-command
+
+
+ Current time: {0}
+
+
+ Hello World !
+
+
+ Random number: {0}
+
+
+ A test !
+
+
+ Gives some test-messages e.G: a log-entry, a random number, the actual date ...
+ Description of test-command
+
+
\ No newline at end of file
diff --git a/TestStatements/PluginBase/Interfaces/ICommand.cs b/TestStatements/PluginBase/Interfaces/ICommand.cs
new file mode 100644
index 000000000..194ad3bf0
--- /dev/null
+++ b/TestStatements/PluginBase/Interfaces/ICommand.cs
@@ -0,0 +1,10 @@
+namespace PluginBase.Interfaces;
+
+public interface ICommand
+{
+ string Name { get; }
+ string Description { get; }
+ void Initialize(IEnvironment env);
+ int Execute();
+}
+
diff --git a/TestStatements/PluginBase/Interfaces/IData.cs b/TestStatements/PluginBase/Interfaces/IData.cs
new file mode 100644
index 000000000..aec7bce67
--- /dev/null
+++ b/TestStatements/PluginBase/Interfaces/IData.cs
@@ -0,0 +1,11 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace PluginBase.Interfaces;
+
+public interface IData : IDictionary
public static void SwitchExample4()
{
- var values = new List
/// The coll.
-#if NET5_0_OR_GREATER
private static void ShowCollectionInformation(object? coll)
-#else
- private static void ShowCollectionInformation(object coll)
-#endif
+
{
switch (coll)
{
@@ -352,7 +346,7 @@ public static int DiceSum(IEnumerable values)
/// Passes this instance.
///
/// System.Object.
- public static object Pass()
+ public static object? Pass()
{
if (rnd.Next(0, 2) == 0)
return null;
diff --git a/TestStatements/TestStatements/Anweisungen/SwitchStatement2.cs b/TestStatements/TestStatements/Anweisungen/SwitchStatement2.cs
index 1dd834387..839e10635 100644
--- a/TestStatements/TestStatements/Anweisungen/SwitchStatement2.cs
+++ b/TestStatements/TestStatements/Anweisungen/SwitchStatement2.cs
@@ -154,12 +154,9 @@ public class SwitchStatement2
///
public static void SwitchExample21()
{
-#if NET5_0_OR_GREATER
Shape? sh = null;
-#else
- Shape sh = null;
-#endif
- Shape[] shapes = { new Square(10), new Rectangle(5, 7),
+
+ Shape?[] shapes = { new Square(10), new Rectangle(5, 7),
sh, new Square(0), new Rectangle(8, 8),
new Circle(3) };
foreach (var shape in shapes)
@@ -170,7 +167,7 @@ public static void SwitchExample21()
/// Shows the shape information.
///
/// The sh.
- public static void ShowShapeInfo(Shape sh)
+ public static void ShowShapeInfo(Shape? sh)
{
switch (sh)
{
diff --git a/TestStatements/TestStatements/Collection/Generic/ComparerExample.cs b/TestStatements/TestStatements/Collection/Generic/ComparerExample.cs
index 4f4e2c7c3..1d4392c26 100644
--- a/TestStatements/TestStatements/Collection/Generic/ComparerExample.cs
+++ b/TestStatements/TestStatements/Collection/Generic/ComparerExample.cs
@@ -27,7 +27,7 @@ public static class ComparerExample
///
/// The boxes
///
- private static List Boxes;
+ private static List? Boxes;
///
/// Main procedure of Comparer-example.
///
@@ -51,7 +51,7 @@ public static void ComparerExampleMain(string[] args)
private static void CreateTestData()
{
Boxes?.Clear();
- Boxes = new List()
+ Boxes = new()
{
new Box(4, 20, 14),
new Box(12, 12, 12),
diff --git a/TestStatements/TestStatements/Collection/Generic/SortedListExample.cs b/TestStatements/TestStatements/Collection/Generic/SortedListExample.cs
index c48480e44..d31da5fb7 100644
--- a/TestStatements/TestStatements/Collection/Generic/SortedListExample.cs
+++ b/TestStatements/TestStatements/Collection/Generic/SortedListExample.cs
@@ -84,8 +84,7 @@ public static void ShowValues2()
CreateTestSL();
openWith["doc"] = "winword.exe";
- Console.WriteLine();
- Console.WriteLine("Indexed retrieval using the Values " +
+ Console.WriteLine("\nIndexed retrieval using the Values " +
"property: Values[2] = {0}", openWith.Values[2]);
}
@@ -124,8 +123,7 @@ public static void ShowKeys2()
CreateTestSL();
openWith["doc"] = "winword.exe";
- Console.WriteLine();
- Console.WriteLine("Indexed retrieval using the Keys " +
+ Console.WriteLine("\nIndexed retrieval using the Keys " +
"property: Keys[2] = {0}", openWith.Keys[2]);
}
@@ -140,8 +138,7 @@ public static void ShowRemove()
CreateTestSL();
openWith["doc"] = "winword.exe";
- Console.WriteLine();
- Console.WriteLine("Remove(\"doc\")");
+ Console.WriteLine("\nRemove(\"doc\")");
openWith.Remove("doc");
if (!openWith.ContainsKey("doc"))
diff --git a/TestStatements/TestStatements/Collection/Generic/TestList.cs b/TestStatements/TestStatements/Collection/Generic/TestList.cs
index bcd901fc5..066fdd110 100644
--- a/TestStatements/TestStatements/Collection/Generic/TestList.cs
+++ b/TestStatements/TestStatements/Collection/Generic/TestList.cs
@@ -28,7 +28,7 @@ public class Part : IEquatable
/// Gets or sets the name of the part.
///
/// The name of the part.
- public string PartName { get; set; }
+ public string? PartName { get; set; }
///
/// Gets or sets the part identifier.
@@ -42,7 +42,7 @@ public class Part : IEquatable
/// A that represents this instance.
public override string ToString()
{
- return "ID: " + PartId + " Name: " + PartName;
+ return $"ID: {PartId} Name: {PartName}";
}
///
/// Determines whether the specified is equal to this instance.
@@ -436,17 +436,12 @@ public static void ShowClear()
ShowStatus(dinosaurs);
}
- public static void Clear()
- {
- dinosaurs.Clear();
- }
-
///
/// Creates the test data.
///
public static void CreateTestData()
{
- Clear();
+ dinosaurs.Clear();
dinosaurs.Add("Tyrannosaurus");
dinosaurs.Add("Amargasaurus");
dinosaurs.Add("Mamenchisaurus");
diff --git a/TestStatements/TestStatements/DependencyInjection/DIExample.cs b/TestStatements/TestStatements/DependencyInjection/DIExample.cs
index eb2a919f9..4632895de 100644
--- a/TestStatements/TestStatements/DependencyInjection/DIExample.cs
+++ b/TestStatements/TestStatements/DependencyInjection/DIExample.cs
@@ -13,7 +13,7 @@ public class DIExample
{
public static void Main(params string[] args)
{
- HostApplicationBuilder builder = new Host.CreateApplicationBuilder(args);
+ HostApplicationBuilder builder = Host.CreateApplicationBuilder(args);
builder.Services.AddHostedService()
.AddSingleton();
diff --git a/TestStatements/TestStatements/DependencyInjection/DIExample2.cs b/TestStatements/TestStatements/DependencyInjection/DIExample2.cs
index b6dbc4dee..4b3ce79ee 100644
--- a/TestStatements/TestStatements/DependencyInjection/DIExample2.cs
+++ b/TestStatements/TestStatements/DependencyInjection/DIExample2.cs
@@ -1,45 +1,12 @@
-using Microsoft.Extensions.DependencyInjection;
-using Microsoft.Extensions.Logging;
-using System;
+using System;
using System.Collections.Generic;
using System.Linq;
-using System.Runtime.InteropServices;
using System.Text;
using System.Threading.Tasks;
-namespace TestStatements.DependencyInjection;
-
-public class DIExample2
+namespace TestStatements.DependencyInjection
{
-
- class testClass1(IMessageWriter messageWriter)
+ internal class DIExample2
{
- IMessageWriter mw { get; } = messageWriter;
-
- public void Write(string msg)
- {
- mw.Write(msg);
- }
- }
-
- public static ServiceProvider container { get; private set; }
-
-
- public static void TestDependencyInjection()
- {
- var sc = new ServiceCollection()
- .AddSingleton()
- .AddSingleton>()
- .AddTransient()
- .AddTransient();
-
- container = sc.BuildServiceProvider();
-
-
- var worker = container.GetRequiredService();
-
- var test = container.GetRequiredService();
-
- test.Write("Hello World");
}
}
diff --git a/TestStatements/TestStatements/DependencyInjection/LoggingMessageWriter.cs b/TestStatements/TestStatements/DependencyInjection/LoggingMessageWriter.cs
index e81e271c2..709185a70 100644
--- a/TestStatements/TestStatements/DependencyInjection/LoggingMessageWriter.cs
+++ b/TestStatements/TestStatements/DependencyInjection/LoggingMessageWriter.cs
@@ -5,12 +5,13 @@
using System.Text;
using System.Threading.Tasks;
-namespace TestStatements.DependencyInjection;
-
-public class LoggingMessageWriter(ILogger logger) : IMessageWriter
+namespace TestStatements.DependencyInjection
{
- public void Write(string message)
- => logger.LogInformation("Info: {Msg}", message);
+ public class LoggingMessageWriter(ILogger logger) : IMessageWriter
+ {
+ public void Write(string message)
+ => logger.LogInformation("Info: {Msg}", message);
+ }
+
+
}
-
-
diff --git a/TestStatements/TestStatements/Diagnostics/StopWatchExample.cs b/TestStatements/TestStatements/Diagnostics/StopWatchExample.cs
index a8064e600..c7d1bbcec 100644
--- a/TestStatements/TestStatements/Diagnostics/StopWatchExample.cs
+++ b/TestStatements/TestStatements/Diagnostics/StopWatchExample.cs
@@ -24,7 +24,7 @@ namespace TestStatements.Diagnostics
///
public static class StopWatchExample
{
- public static Func GetStopwatch { get; set; }= () => new StopwatchProxy();
+ public static Func GetStopwatch { get; set; }= () => new Stopwatch();
public static Action ThreadSleep { get; set; }=(i) => Thread.Sleep(i);
///
@@ -132,7 +132,7 @@ public static void TimeOperations()
{
long ticksThisTime = 0;
int inputNum;
- IStopwatch timePerParse;
+ dynamic timePerParse;
Func<(bool ok, int)> f = (operation) switch {
0 => () => (true, Int32.Parse("0")),
diff --git a/TestStatements/TestStatements/Diagnostics/StopwatchProxy.cs b/TestStatements/TestStatements/Diagnostics/StopwatchProxy.cs
new file mode 100644
index 000000000..bcb69a23e
--- /dev/null
+++ b/TestStatements/TestStatements/Diagnostics/StopwatchProxy.cs
@@ -0,0 +1,21 @@
+// ***********************************************************************
+// Assembly : TestStatements
+// Author : Mir
+// Created : 12-19-2021
+//
+// Last Modified By : Mir
+// Last Modified On : 09-20-2022
+// ***********************************************************************
+//
+// Copyright © JC-Soft 2020
+//
+//
+// ***********************************************************************
+using System.Diagnostics;
+
+namespace TestStatements.Diagnostics
+{
+ public class StopwatchProxy : Stopwatch, IStopwatch
+ {
+ }
+}
\ No newline at end of file
diff --git a/TestStatements/TestStatements/Helper/Extensons.cs b/TestStatements/TestStatements/Helper/Extensons.cs
index f5aad2eb7..1dabccee7 100644
--- a/TestStatements/TestStatements/Helper/Extensons.cs
+++ b/TestStatements/TestStatements/Helper/Extensons.cs
@@ -11,9 +11,7 @@
//
//
// ***********************************************************************
-#if NET5_0_OR_GREATER
using Microsoft.CodeAnalysis.CSharp;
-#endif
using System;
using System.Collections;
using System.Collections.Generic;
diff --git a/TestStatements/TestStatements/Program.cs b/TestStatements/TestStatements/Program.cs
index 52ddb493f..89de6380a 100644
--- a/TestStatements/TestStatements/Program.cs
+++ b/TestStatements/TestStatements/Program.cs
@@ -23,7 +23,7 @@
using TestStatements.ClassesAndObjects;
using TestStatements.Helper;
using TestStatements.Runtime.Loader;
-using TestStatements.SystemNS.Printing;
+using TestStatements.Runtime.Dynamic;
namespace TestStatements
{
@@ -41,10 +41,8 @@ static void Main(string[] args)
foreach (var s in Properties.Resource1.Version.Split(new string[] {"\r\n"},StringSplitOptions.None))
Console.WriteLine(s.Substring(s.IndexOf(']')+1));
Console.WriteLine();
- // SystemNS.Printing
- Printing_Ex.PrintDocument();
- // Anweisungen
RTLoaderExample.Main(args);
+ DynamicAssembly.CreateAndSaveAssembly();
DebugExample.Main();
Declarations.DoVarDeclarations(args);
Declarations.DoConstantDeclarations(args);
diff --git a/TestStatements/TestStatements/Reflection/AssemblyExample.cs b/TestStatements/TestStatements/Reflection/AssemblyExample.cs
index 7c2aae538..f4f91d0df 100644
--- a/TestStatements/TestStatements/Reflection/AssemblyExample.cs
+++ b/TestStatements/TestStatements/Reflection/AssemblyExample.cs
@@ -41,8 +41,7 @@ public AssemblyExample(int f)
/// System.Int32.
public int SampleMethod(int x)
{
- Console.WriteLine();
- Console.WriteLine("Example.SampleMethod({0}) executes.", x);
+ Console.WriteLine("\nExample.SampleMethod({0}) executes.", x);
return x * factor;
}
@@ -51,6 +50,10 @@ public int SampleMethod(int x)
///
public static void ExampleMain()
{
+ const string Title = $"Example for {nameof(Reflection)} ({nameof(AssemblyExample)})";
+ Console.WriteLine(Constants.Constants.Header.Replace("%s", Title));
+ Console.WriteLine();
+
Assembly assem = typeof(Program).Assembly;
Console.WriteLine("Assembly Full Name:");
@@ -58,13 +61,11 @@ public static void ExampleMain()
// The AssemblyName type can be used to parse the full name.
AssemblyName assemName = assem.GetName();
- Console.WriteLine();
- Console.WriteLine("Name: {0}", assemName.Name);
+ Console.WriteLine("\nName: {0}", assemName.Name);
Console.WriteLine("Version: {0}.{1}",
assemName.Version?.Major, assemName.Version?.Minor);
- Console.WriteLine();
- Console.WriteLine("Assembly CodeBase:");
+ Console.WriteLine("\nAssembly CodeBase:");
#if NET5_0_OR_GREATER
Console.WriteLine(assem.Location);
#else
@@ -116,8 +117,7 @@ public static void ExampleMain()
#endif
Console.WriteLine("SampleMethod returned {0}.", ret);
- Console.WriteLine();
- Console.WriteLine("Assembly entry point:");
+ Console.WriteLine("\nAssembly entry point:");
Console.WriteLine(assem.EntryPoint);
}
}
diff --git a/TestStatements/TestStatements/Reflection/ReflectionExample.cs b/TestStatements/TestStatements/Reflection/ReflectionExample.cs
index dc74f4bf6..dd3ae96f2 100644
--- a/TestStatements/TestStatements/Reflection/ReflectionExample.cs
+++ b/TestStatements/TestStatements/Reflection/ReflectionExample.cs
@@ -51,6 +51,10 @@ public interface INested { }
///
public static void ExampleMain()
{
+ const string Title = $"Example for {nameof(Reflection)} ({nameof(ReflectionExample)})";
+ Console.WriteLine(Constants.Constants.Header.Replace("%s", Title));
+ Console.WriteLine();
+
// Create an array of types.
Type[] types = { typeof(ReflectionExample), typeof(NestedClass),
typeof(INested), typeof(S) };
diff --git a/TestStatements/TestStatements/Runtime/Dynamic/DynamicAssembly.cs b/TestStatements/TestStatements/Runtime/Dynamic/DynamicAssembly.cs
new file mode 100644
index 000000000..1517a9d4a
--- /dev/null
+++ b/TestStatements/TestStatements/Runtime/Dynamic/DynamicAssembly.cs
@@ -0,0 +1,74 @@
+using System;
+using System.Reflection.Emit;
+using System.Reflection;
+using System.Threading;
+using System.IO;
+
+namespace TestStatements.Runtime.Dynamic;
+
+public static class DynamicAssembly
+{
+ public static void CreateAndSaveAssembly()
+ {
+ const string Title = $"Example for {nameof(Dynamic)} ({nameof(DynamicAssembly)})";
+ Console.WriteLine(Constants.Constants.Header.Replace("%s", Title));
+ Console.WriteLine();
+
+#if NET9_0_OR_GREATER
+ PersistedAssemblyBuilder ab = new PersistedAssemblyBuilder(
+ new AssemblyName("MyAssembly"), typeof(object).Assembly);
+#elif NET5_0_OR_GREATER
+ AssemblyBuilder ab = AssemblyBuilder.DefineDynamicAssembly(new AssemblyName("MyAssembly"), AssemblyBuilderAccess.Run);
+#else
+ AssemblyBuilder ab = Thread.GetDomain().DefineDynamicAssembly(new AssemblyName("MyAssembly"), AssemblyBuilderAccess.RunAndSave);
+#endif
+ ModuleBuilder mob = ab.DefineDynamicModule("MyAssembly.dll");
+ TypeBuilder tb = mob.DefineType("MyType", TypeAttributes.Public | TypeAttributes.Class);
+ MethodBuilder meb = tb.DefineMethod("SumMethod",
+ MethodAttributes.Public | MethodAttributes.Static,
+ typeof(int),
+ new Type[] { typeof(int), typeof(int) });
+ ILGenerator il = meb.GetILGenerator();
+ il.Emit(OpCodes.Ldarg_0);
+ il.Emit(OpCodes.Ldarg_1);
+ il.Emit(OpCodes.Add);
+ il.Emit(OpCodes.Ret);
+
+#if !NET9_0_OR_GREATER
+ Type? type = tb?.CreateType();
+#else
+ tb.CreateType();
+
+ using var stream = new MemoryStream();
+ ab.Save(stream); // or pass filename to save into a file
+ stream.Seek(0, SeekOrigin.Begin);
+ Assembly? assembly = System.Runtime.Loader.AssemblyLoadContext.Default.LoadFromStream(stream);
+ Type? type = assembly.GetType("MyType");
+#endif
+ Console.WriteLine("Evaluation of MyType.SumMethod(?,?)");
+ MethodInfo? method = type?.GetMethod("SumMethod");
+ Console.WriteLine();
+ Console.Write($"{"",5}");
+ for (var j = -5; j < 6; j++)
+ Console.Write($"{j,4}");
+ Console.WriteLine();
+
+ for (var i = -5; i < 6; i++)
+ {
+ Console.Write($"{i,4}:");
+ for (var j = -5; j < 6; j++)
+ Console.Write($"{(int?)method?.Invoke(null, [i, j]),4}");
+ Console.WriteLine();
+ }
+
+#if NET9_0_OR_GREATER
+ Console.WriteLine("Save MyAssembly.dll");
+ stream.Seek(0, SeekOrigin.Begin);
+ using var stream2 = new FileStream("MyAssembly.dll",FileMode.Create);
+ stream.CopyTo(stream2);
+#elif !NET5_0_OR_GREATER
+ Console.WriteLine("Save MyAssembly.dll");
+ ab.Save("MyAssembly.dll");
+#endif
+ }
+}
diff --git a/TestStatements/TestStatements/Runtime/Loader/RTLoaderExample.cs b/TestStatements/TestStatements/Runtime/Loader/RTLoaderExample.cs
index b07d4ab73..96397d808 100644
--- a/TestStatements/TestStatements/Runtime/Loader/RTLoaderExample.cs
+++ b/TestStatements/TestStatements/Runtime/Loader/RTLoaderExample.cs
@@ -8,64 +8,72 @@
using Microsoft.CodeAnalysis;
using Microsoft.CodeAnalysis.CSharp;
-namespace TestStatements.Runtime.Loader
+namespace TestStatements.Runtime.Loader;
+
+public static class RTLoaderExample
{
- public static class RTLoaderExample
+ public static async Task Main(string[] args)
{
- public static async Task Main(string[] args)
+ const string Title = $"Example for {nameof(Runtime)} ({nameof(RTLoaderExample)})";
+ Console.WriteLine(Constants.Constants.Header.Replace("%s", Title));
+ Console.WriteLine();
+
+ using (Stream stream = new MemoryStream())
{
- using (Stream stream = new MemoryStream())
- {
- var compilation = CSharpCompilation.Create("a")
- .WithOptions(new CSharpCompilationOptions(OutputKind.DynamicallyLinkedLibrary))
- .AddReferences(
- MetadataReference.CreateFromFile(typeof(object).GetType().Assembly.Location))
- .AddSyntaxTrees(CSharpSyntaxTree.ParseText(
- @"public static class C{public static int M(int a, int b)=> a*b ^ b+a ; }"));
+ var compilation = CSharpCompilation.Create("a")
+ .WithOptions(new CSharpCompilationOptions(OutputKind.DynamicallyLinkedLibrary))
+ .AddReferences(
+ MetadataReference.CreateFromFile(typeof(object).GetType().Assembly.Location))
+ .AddSyntaxTrees(CSharpSyntaxTree.ParseText(
+ @"public static class C{public static int M(int a, int b)=> a*b ^ b+a ; }"));
- var results = compilation.Emit(stream);
- if (results.Success)
- {
- stream.Position = 0L;
- var b = new byte[stream.Length];
- stream.Read(b,0,b.Length);
- string l1="", l2 = "";
+ var results = compilation.Emit(stream);
+ if (results.Success)
+ {
+ stream.Position = 0L;
+ var b = new byte[stream.Length];
+#if NET7_0_OR_GREATER
+ stream.ReadExactly(b,0,b.Length);
+#else
+ stream.Read(b,0,b.Length);
+#endif
+ string l1="", l2 = "";
- for(int i = 0; i < b.Length; i++)
- {
- l1 += $"{b[i]:X2} ";
- l2 += $"{(b[i] > 31 && b[i] < 128 ? (char)b[i]:'.')}";
- if (i % 8 == 7) l1 += ": ";
- if (i % 16 == 15) {
- Console.WriteLine($"{i:X4}: {l1} | {l2}");
- l1 = l2 = "";
+ for(int i = 0; i < b.Length; i++)
+ {
+ l1 += $"{b[i]:X2} ";
+ l2 += $"{(b[i] > 31 && b[i] < 128 ? (char)b[i]:'.')}";
+ if (i % 8 == 7) l1 += ": ";
+ if (i % 16 == 15) {
+ Console.WriteLine($"{i:X4}: {l1} | {l2}");
+ l1 = l2 = "";
- }
- }
- stream.Position = 0L;
+ }
+ }
+ stream.Position = 0L;
#if NET6_0_OR_GREATER
- var context = AssemblyLoadContext.Default;
- Assembly a = context.LoadFromStream(stream);//<--Exception here.
+ var context = AssemblyLoadContext.Default;
+ Assembly a = context.LoadFromStream(stream);//<--Exception here.
#else
- var bytes = new byte[stream.Length];
- stream.Read(bytes, 0, bytes.Length);
- Assembly a = Assembly.Load(bytes);
-#endif
- var m = a.GetType("C").GetRuntimeMethod("M", new System.Type[] { typeof(int), typeof(int) });
- Console.WriteLine();
- Console.Write($"{"",5}");
- for (var j = -5; j < 6; j++)
- Console.Write($"{j,4}");
- Console.WriteLine();
+ var bytes = new byte[stream.Length];
+ stream.Read(bytes, 0, bytes.Length);
+ Assembly a = Assembly.Load(bytes);
+#endif
+ Console.WriteLine("Evaluation of C.M(?,?)");
+ var m = a.GetType("C")?.GetRuntimeMethod("M", [ typeof(int), typeof(int) ]);
+ Console.WriteLine();
+ Console.Write($"{"",5}");
+ for (var j = -5; j < 6; j++)
+ Console.Write($"{j,4}");
+ Console.WriteLine();
- for (var i = -5; i<6; i++ )
- {
- Console.Write($"{i,4}:");
- for (var j = -5; j < 6; j++ )
- Console.Write($"{(int?)m?.Invoke(null, new object[] { i, j }),4}");
- Console.WriteLine();
- }
+ for (var i = -5; i<6; i++ )
+ {
+ Console.Write($"{i,4}:");
+ for (var j = -5; j < 6; j++ )
+ Console.Write($"{(int?)m?.Invoke(null, [ i, j ]),4}");
+ Console.WriteLine();
}
}
}
diff --git a/TestStatements/TestStatements/TestStatements.csproj b/TestStatements/TestStatements/TestStatements.csproj
index 7ebea87d0..c9cb53871 100644
--- a/TestStatements/TestStatements/TestStatements.csproj
+++ b/TestStatements/TestStatements/TestStatements.csproj
@@ -30,7 +30,6 @@
-
@@ -57,16 +56,10 @@
-
-
-
-
-
+
-
-
-
-
+
+
diff --git a/TestStatements/TestStatements/TestStatements_net.csproj b/TestStatements/TestStatements/TestStatements_net.csproj
index 2b3845262..3839abb47 100644
--- a/TestStatements/TestStatements/TestStatements_net.csproj
+++ b/TestStatements/TestStatements/TestStatements_net.csproj
@@ -3,7 +3,7 @@
- net6.0;net7.0;net8.0
+ net6.0;net7.0;net8.0;net9.0
Exe
@@ -30,7 +30,6 @@
-
@@ -57,15 +56,8 @@
-
-
-
-
-
-
+
-
-
diff --git a/TestStatements/TestStatements/Threading/Tasks/IPing.cs b/TestStatements/TestStatements/Threading/Tasks/IPing.cs
new file mode 100644
index 000000000..44aeaba8d
--- /dev/null
+++ b/TestStatements/TestStatements/Threading/Tasks/IPing.cs
@@ -0,0 +1,23 @@
+// ***********************************************************************
+// Assembly : TestStatements
+// Author : Mir
+// Created : 12-19-2021
+//
+// Last Modified By : Mir
+// Last Modified On : 09-09-2022
+// ***********************************************************************
+//
+// Copyright © JC-Soft 2020
+//
+//
+// ***********************************************************************
+using System.Net;
+using System.Net.NetworkInformation;
+
+namespace TestStatements.Threading.Tasks
+{
+ public interface IPing
+ {
+ PingReply Send(string hostNameOrAddress);
+ }
+}
\ No newline at end of file
diff --git a/TestStatements/TestStatements/Threading/Tasks/PingProxy.cs b/TestStatements/TestStatements/Threading/Tasks/PingProxy.cs
new file mode 100644
index 000000000..28df6d7e6
--- /dev/null
+++ b/TestStatements/TestStatements/Threading/Tasks/PingProxy.cs
@@ -0,0 +1,21 @@
+// ***********************************************************************
+// Assembly : TestStatements
+// Author : Mir
+// Created : 12-19-2021
+//
+// Last Modified By : Mir
+// Last Modified On : 09-09-2022
+// ***********************************************************************
+//
+// Copyright © JC-Soft 2020
+//
+//
+// ***********************************************************************
+using System.Net.NetworkInformation;
+
+namespace TestStatements.Threading.Tasks
+{
+ public class PingProxy: Ping, IPing
+ {
+ }
+}
\ No newline at end of file
diff --git a/TestStatements/TestStatements/Threading/Tasks/TaskExample.cs b/TestStatements/TestStatements/Threading/Tasks/TaskExample.cs
index 6a544efe7..80ef077be 100644
--- a/TestStatements/TestStatements/Threading/Tasks/TaskExample.cs
+++ b/TestStatements/TestStatements/Threading/Tasks/TaskExample.cs
@@ -24,7 +24,6 @@ namespace TestStatements.Threading.Tasks
///
public static class TaskExample
{
- public static Func GetPing { get; set; } = () => new PingProxy();
///
/// The urls
///
@@ -66,7 +65,7 @@ public static void ExampleMain1()
{
var url = value;
tasks.Add(Task.Run(() => {
- var png = GetPing();
+ var png = new Ping();
try
{
var reply = png.Send(url);
diff --git a/TestStatements/TestStatementsNew/Anweisungen/Printing_Ex.cs b/TestStatements/TestStatementsNew/Anweisungen/Printing_Ex.cs
index 012b9e9a9..140eef52d 100644
--- a/TestStatements/TestStatementsNew/Anweisungen/Printing_Ex.cs
+++ b/TestStatements/TestStatementsNew/Anweisungen/Printing_Ex.cs
@@ -1,24 +1,10 @@
using System;
-using System.Collections.Generic;
using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
using System.Windows.Media;
using System.Windows;
-using System.IO;
-using System.Windows.Controls;
-using System.Windows.Documents.Serialization;
-using System.Windows.Documents;
-
-using System.Windows.Xps.Packaging;
-using Accessibility;
using System.Globalization;
-
-
-
-
#if !NET5_0_OR_GREATER
using System.Drawing.Printing;
using System.Drawing;
diff --git a/TestStatements/TestStatementsNew/Program.cs b/TestStatements/TestStatementsNew/Program.cs
index 0df38ebb2..09226b669 100644
--- a/TestStatements/TestStatementsNew/Program.cs
+++ b/TestStatements/TestStatementsNew/Program.cs
@@ -7,7 +7,6 @@ static void Init()
static void Run()
{
TestStatementsNew.Anweisungen.SwitchStatement3.ShowTollCollector();
- TestStatements.SystemNS.Printing.Printing_Ex.PrintDocument();
}
// See https://aka.ms/new-console-template for more information
diff --git a/TestStatements/TestStatementsNew/TestStatementsNew.csproj b/TestStatements/TestStatementsNew/TestStatementsNew.csproj
index b3ac040d4..318ad48ec 100644
--- a/TestStatements/TestStatementsNew/TestStatementsNew.csproj
+++ b/TestStatements/TestStatementsNew/TestStatementsNew.csproj
@@ -1,26 +1,30 @@
-
-
-
-
-
- net6.0-windows;net7.0-windows;net8.0-windows
- Exe
- true
-
-
-
-
- TestStatementsNew
- TestStatementsNew
- false
- false
- false
- 1.0.*
-
- TestStatements_new 1.0
-
+ TestStatements_new 1.0
+
+
+
+
diff --git a/TestStatements/TestStatementsNew/net9/NewThingsIn13.cs b/TestStatements/TestStatementsNew/net9/NewThingsIn13.cs
new file mode 100644
index 000000000..419e2604d
--- /dev/null
+++ b/TestStatements/TestStatementsNew/net9/NewThingsIn13.cs
@@ -0,0 +1,34 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace TestStatementsNew.net9;
+public class NewThingsIn13
+{
+ class S { public int[] buffer; }
+ public static void ImplicitIndex()
+ {
+ var numbers = new S()
+ {
+ buffer =
+ {
+ [^1] = 0,
+ [^2] = 1,
+ [^3] = 2,
+ [^4] = 3,
+ [^5] = 4,
+ [^6] = 5,
+ [^7] = 6,
+ [^8] = 7,
+ [^9] = 8,
+ [^10] = 9
+ }
+ };
+ var index = 2;
+ Console.WriteLine(numbers.buffer[index]);
+ }
+
+
+}
diff --git a/TestStatements/TestStatementsNew/net9/NewThingsInNet9.cs b/TestStatements/TestStatementsNew/net9/NewThingsInNet9.cs
new file mode 100644
index 000000000..0944d33de
--- /dev/null
+++ b/TestStatements/TestStatementsNew/net9/NewThingsInNet9.cs
@@ -0,0 +1,106 @@
+using System;
+using System.Collections.Generic;
+using System.IO;
+using System.Linq;
+using System.Reflection.Emit;
+using System.Reflection;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace TestStatementsNew.net9;
+
+public class NewThingsInNet9
+{
+ public void AggregateByTest()
+ {
+ (string id, int score)[] data =
+ [
+ ("0", 42),
+ ("1", 5),
+ ("2", 4),
+ ("1", 10),
+ ("0", 25),
+ ];
+
+#if NET9_0_OR_GREATER
+ var aggregatedData =
+ data.AggregateBy(
+ keySelector: entry => entry.id,
+ seed: 0,
+ (totalScore, curr) => totalScore + curr.score
+ );
+#else
+ var aggregatedData = data
+ .GroupBy(entry => entry.id)
+ .Select(group => (id: group.Key, totalScore: group.Sum(entry => entry.score)))
+ .ToList();
+#endif
+ foreach (var item in aggregatedData)
+ {
+ Console.WriteLine(item);
+ }
+ //(0, 67)
+ //(1, 15)
+ //(2, 4)
+ }
+
+ public void IndexTest()
+ {
+ IEnumerable lines2 = File.ReadAllLines("output.txt");
+#if NET9_0_OR_GREATER
+ foreach ((int index, string line) in lines2.Index())
+ {
+ Console.WriteLine($"Line number: {index + 1}, Line: {line}");
+ }
+#else
+ foreach (var (index, line) in (IEnumerable<(int index, string line)>?)lines2?.Select((line, index) => (index, line)))
+ {
+ Console.WriteLine($"Line number: {index + 1}, Line: {line}");
+ }
+#endif
+ }
+
+ public void CreateAndSaveAssembly(string assemblyPath)
+ {
+#if NET9_0_OR_GREATER
+ PersistedAssemblyBuilder ab = (PersistedAssemblyBuilder)PersistedAssemblyBuilder.DefineDynamicAssembly(
+ new AssemblyName("MyAssembly"),
+ AssemblyBuilderAccess.Run
+ );
+#else
+ AssemblyBuilder ab = AssemblyBuilder.DefineDynamicAssembly(
+ new AssemblyName("MyAssembly"),
+ AssemblyBuilderAccess.Run
+ );
+#endif
+ TypeBuilder tb = ab.DefineDynamicModule("MyModule")
+ .DefineType("MyType", TypeAttributes.Public | TypeAttributes.Class);
+
+ MethodBuilder mb = tb.DefineMethod(
+ "SumMethod",
+ MethodAttributes.Public | MethodAttributes.Static,
+ typeof(int), [typeof(int), typeof(int)]
+ );
+ ILGenerator il = mb.GetILGenerator();
+ il.Emit(OpCodes.Ldarg_0);
+ il.Emit(OpCodes.Ldarg_1);
+ il.Emit(OpCodes.Add);
+ il.Emit(OpCodes.Ret);
+
+ tb.CreateType();
+#if NET9_0_OR_GREATER
+ ab.Save(assemblyPath); // or could save to a Stream
+#else
+
+#endif
+ }
+
+ public void UseAssembly(string assemblyPath)
+ {
+ Assembly assembly = Assembly.LoadFrom(assemblyPath);
+ Type? type = assembly.GetType("MyType");
+ MethodInfo? method = type?.GetMethod("SumMethod");
+ Console.WriteLine(method?.Invoke(null, [5, 10]));
+ }
+
+}
\ No newline at end of file
diff --git a/TestStatements/TestStatementsTest/Anweisungen/AccountTests.cs b/TestStatements/TestStatementsTest/Anweisungen/AccountTests.cs
index 352cbbd3a..8af7abf4f 100644
--- a/TestStatements/TestStatementsTest/Anweisungen/AccountTests.cs
+++ b/TestStatements/TestStatementsTest/Anweisungen/AccountTests.cs
@@ -1,10 +1,5 @@
using Microsoft.VisualStudio.TestTools.UnitTesting;
-using TestStatements.Anweisungen;
using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
namespace TestStatements.Anweisungen.Tests
{
diff --git a/TestStatements/TestStatementsTest/Anweisungen/CheckingTests.cs b/TestStatements/TestStatementsTest/Anweisungen/CheckingTests.cs
index feb9c0ff8..c1101bd4b 100644
--- a/TestStatements/TestStatementsTest/Anweisungen/CheckingTests.cs
+++ b/TestStatements/TestStatementsTest/Anweisungen/CheckingTests.cs
@@ -1,6 +1,4 @@
using Microsoft.VisualStudio.TestTools.UnitTesting;
-using System;
-using System.IO;
using TestStatements.UnitTesting;
namespace TestStatements.Anweisungen.Tests
diff --git a/TestStatements/TestStatementsTest/Anweisungen/ConditionalStatementTests.cs b/TestStatements/TestStatementsTest/Anweisungen/ConditionalStatementTests.cs
index 2945bdf0f..a178ba681 100644
--- a/TestStatements/TestStatementsTest/Anweisungen/ConditionalStatementTests.cs
+++ b/TestStatements/TestStatementsTest/Anweisungen/ConditionalStatementTests.cs
@@ -1,6 +1,4 @@
using Microsoft.VisualStudio.TestTools.UnitTesting;
-using System;
-using System.IO;
using TestStatements.UnitTesting;
namespace TestStatements.Anweisungen.Tests
diff --git a/TestStatements/TestStatementsTest/Anweisungen/ExceptionHandlingTests.cs b/TestStatements/TestStatementsTest/Anweisungen/ExceptionHandlingTests.cs
index 4462840ae..a82008544 100644
--- a/TestStatements/TestStatementsTest/Anweisungen/ExceptionHandlingTests.cs
+++ b/TestStatements/TestStatementsTest/Anweisungen/ExceptionHandlingTests.cs
@@ -1,6 +1,4 @@
using Microsoft.VisualStudio.TestTools.UnitTesting;
-using System;
-using System.IO;
using TestStatements.UnitTesting;
namespace TestStatements.Anweisungen.Tests
diff --git a/TestStatements/TestStatementsTest/Anweisungen/LoopStatementsTests.cs b/TestStatements/TestStatementsTest/Anweisungen/LoopStatementsTests.cs
index 93438bb56..9cf23e1a8 100644
--- a/TestStatements/TestStatementsTest/Anweisungen/LoopStatementsTests.cs
+++ b/TestStatements/TestStatementsTest/Anweisungen/LoopStatementsTests.cs
@@ -1,11 +1,4 @@
using Microsoft.VisualStudio.TestTools.UnitTesting;
-using TestStatements.Anweisungen;
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-using System.IO;
using TestStatements.UnitTesting;
namespace TestStatements.Anweisungen.Tests
diff --git a/TestStatements/TestStatementsTest/Anweisungen/ProgramFlowTests.cs b/TestStatements/TestStatementsTest/Anweisungen/ProgramFlowTests.cs
index 4d5d91e9f..914efbe5e 100644
--- a/TestStatements/TestStatementsTest/Anweisungen/ProgramFlowTests.cs
+++ b/TestStatements/TestStatementsTest/Anweisungen/ProgramFlowTests.cs
@@ -1,6 +1,4 @@
using Microsoft.VisualStudio.TestTools.UnitTesting;
-using System;
-using System.IO;
using TestStatements.UnitTesting;
namespace TestStatements.Anweisungen.Tests
diff --git a/TestStatements/TestStatementsTest/Anweisungen/RandomExampleTests.cs b/TestStatements/TestStatementsTest/Anweisungen/RandomExampleTests.cs
index 417337745..f61025435 100644
--- a/TestStatements/TestStatementsTest/Anweisungen/RandomExampleTests.cs
+++ b/TestStatements/TestStatementsTest/Anweisungen/RandomExampleTests.cs
@@ -1,10 +1,5 @@
using Microsoft.VisualStudio.TestTools.UnitTesting;
-using TestStatements.Anweisungen;
using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
using TestStatements.UnitTesting;
namespace TestStatements.Anweisungen.Tests
diff --git a/TestStatements/TestStatementsTest/Anweisungen/SwitchStatement3Tests.cs b/TestStatements/TestStatementsTest/Anweisungen/SwitchStatement3Tests.cs
index a79b93615..c4bc6eccb 100644
--- a/TestStatements/TestStatementsTest/Anweisungen/SwitchStatement3Tests.cs
+++ b/TestStatements/TestStatementsTest/Anweisungen/SwitchStatement3Tests.cs
@@ -1,10 +1,4 @@
using Microsoft.VisualStudio.TestTools.UnitTesting;
-using TestStatements.Anweisungen;
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
using TestStatements.UnitTesting;
namespace TestStatements.Anweisungen.Tests
diff --git a/TestStatements/TestStatementsTest/Anweisungen/SwitchStatementTests.cs b/TestStatements/TestStatementsTest/Anweisungen/SwitchStatementTests.cs
index e1d22a27b..4cc447162 100644
--- a/TestStatements/TestStatementsTest/Anweisungen/SwitchStatementTests.cs
+++ b/TestStatements/TestStatementsTest/Anweisungen/SwitchStatementTests.cs
@@ -1,10 +1,5 @@
using Microsoft.VisualStudio.TestTools.UnitTesting;
-using TestStatements.Anweisungen;
using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
using TestStatements.UnitTesting;
namespace TestStatements.Anweisungen.Tests
diff --git a/TestStatements/TestStatementsTest/ClassesAndObjects/MembersTests.cs b/TestStatements/TestStatementsTest/ClassesAndObjects/MembersTests.cs
index f00356caf..80c3e8f60 100644
--- a/TestStatements/TestStatementsTest/ClassesAndObjects/MembersTests.cs
+++ b/TestStatements/TestStatementsTest/ClassesAndObjects/MembersTests.cs
@@ -1,10 +1,5 @@
using Microsoft.VisualStudio.TestTools.UnitTesting;
-using TestStatements.ClassesAndObjects;
using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
namespace TestStatements.ClassesAndObjects.Tests
{
diff --git a/TestStatements/TestStatementsTest/Collection/Generic/ComparerExampleTests.cs b/TestStatements/TestStatementsTest/Collection/Generic/ComparerExampleTests.cs
index f09ed09c9..e88e9fc37 100644
--- a/TestStatements/TestStatementsTest/Collection/Generic/ComparerExampleTests.cs
+++ b/TestStatements/TestStatementsTest/Collection/Generic/ComparerExampleTests.cs
@@ -1,20 +1,15 @@
using Microsoft.VisualStudio.TestTools.UnitTesting;
-using TestStatements.Collection.Generic;
-using System;
using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-using System.IO;
using TestStatements.UnitTesting;
-namespace TestStatements.Collection.Generic.Tests {
- ///
- /// Defines test class ComparerExampleTests.
- /// Implements the
- ///
- ///
- [TestClass()]
+namespace TestStatements.Collection.Generic.Tests
+{
+ ///
+ /// Defines test class ComparerExampleTests.
+ /// Implements the
+ ///
+ ///
+ [TestClass()]
public class ComparerExampleTests :ConsoleTestsBase {
private readonly string cExpComparerExampleMain = "===================================================================" +
"===\r\n## Comparer \r\n======================================================================\r\n\r\n" +
diff --git a/TestStatements/TestStatementsTest/Collection/Generic/DictionaryExampleTests.cs b/TestStatements/TestStatementsTest/Collection/Generic/DictionaryExampleTests.cs
index 01c311e06..fd034e18d 100644
--- a/TestStatements/TestStatementsTest/Collection/Generic/DictionaryExampleTests.cs
+++ b/TestStatements/TestStatementsTest/Collection/Generic/DictionaryExampleTests.cs
@@ -1,10 +1,4 @@
using Microsoft.VisualStudio.TestTools.UnitTesting;
-using TestStatements.Collection.Generic;
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
using TestStatements.UnitTesting;
namespace TestStatements.Collection.Generic.Tests
diff --git a/TestStatements/TestStatementsTest/Collection/Generic/DinosaurExampleTests.cs b/TestStatements/TestStatementsTest/Collection/Generic/DinosaurExampleTests.cs
index 0f059a27a..2d468e101 100644
--- a/TestStatements/TestStatementsTest/Collection/Generic/DinosaurExampleTests.cs
+++ b/TestStatements/TestStatementsTest/Collection/Generic/DinosaurExampleTests.cs
@@ -1,10 +1,4 @@
using Microsoft.VisualStudio.TestTools.UnitTesting;
-using TestStatements.Collection.Generic;
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
using TestStatements.UnitTesting;
namespace TestStatements.Collection.Generic.Tests
diff --git a/TestStatements/TestStatementsTest/Collection/Generic/SortedListExampleTests.cs b/TestStatements/TestStatementsTest/Collection/Generic/SortedListExampleTests.cs
index 388e5fe64..698d95236 100644
--- a/TestStatements/TestStatementsTest/Collection/Generic/SortedListExampleTests.cs
+++ b/TestStatements/TestStatementsTest/Collection/Generic/SortedListExampleTests.cs
@@ -25,7 +25,7 @@ public class SortedListExampleTests : ConsoleTestsBase
"Value = winword.exe\r\nValue = hypertrm.exe\r\nValue = wordpad.exe\r\nValue = notepad.exe";
private readonly string cExpShowValues2 = "+----------------------------------------------------------\r\n" +
"| Show Values - index\r\n" +
- "+----------------------------------------------------------\r\n\r\n" +
+ "+----------------------------------------------------------\r\n\n" +
"Indexed retrieval using the Values property: Values[2] = winword.exe";
private readonly string cExpShowKeys1 = "+----------------------------------------------------------\r\n" +
"| Show Keys - list\r\n" +
@@ -34,11 +34,11 @@ public class SortedListExampleTests : ConsoleTestsBase
"Key = rtf\r\nKey = txt";
private readonly string cExpShowKeys2 = "+----------------------------------------------------------\r\n" +
"| Show Keys - index\r\n" +
- "+----------------------------------------------------------\r\n\r\n" +
+ "+----------------------------------------------------------\r\n\n" +
"Indexed retrieval using the Keys property: Keys[2] = doc";
private readonly string cExpShowRemove = "+----------------------------------------------------------\r\n" +
"| Show Remove \r\n" +
- "+----------------------------------------------------------\r\n\r\nRemove(\"doc\")\r\n" +
+ "+----------------------------------------------------------\r\n\nRemove(\"doc\")\r\n" +
"Key \"doc\" is not found.";
private readonly string cExpShowForEach = "+----------------------------------------------------------\r\n" +
"| Show ForEach\r\n" +
diff --git a/TestStatements/TestStatementsTest/Collection/Generic/TestHashSetTests.cs b/TestStatements/TestStatementsTest/Collection/Generic/TestHashSetTests.cs
index 91166a596..b94e73139 100644
--- a/TestStatements/TestStatementsTest/Collection/Generic/TestHashSetTests.cs
+++ b/TestStatements/TestStatementsTest/Collection/Generic/TestHashSetTests.cs
@@ -1,10 +1,5 @@
using Microsoft.VisualStudio.TestTools.UnitTesting;
-using TestStatements.Collection.Generic;
using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
using System.IO;
namespace TestStatements.Collection.Generic.Tests
diff --git a/TestStatements/TestStatementsTest/Collection/Generic/TestListTests.cs b/TestStatements/TestStatementsTest/Collection/Generic/TestListTests.cs
index aea2114a2..680532d62 100644
--- a/TestStatements/TestStatementsTest/Collection/Generic/TestListTests.cs
+++ b/TestStatements/TestStatementsTest/Collection/Generic/TestListTests.cs
@@ -139,7 +139,6 @@ public void PartHashCodeTest(string part1, int iId1, int iExp)
[DataRow(2, "Tyrannosaurus\r\nAmargasaurus\r\nMamenchisaurus\r\nDeinonychus\r\nCompsognathus")]
public void CreateTestDataTest(int iVal, string asExp)
{
- DinosaurExample.Clear();
for (int i = 0; i < iVal; i++)
DinosaurExample.CreateTestData();
diff --git a/TestStatements/TestStatementsTest/Constants/ConstantsTests.cs b/TestStatements/TestStatementsTest/Constants/ConstantsTests.cs
index dc4bc4cb0..7cc637485 100644
--- a/TestStatements/TestStatementsTest/Constants/ConstantsTests.cs
+++ b/TestStatements/TestStatementsTest/Constants/ConstantsTests.cs
@@ -1,9 +1,6 @@
using Microsoft.VisualStudio.TestTools.UnitTesting;
using System;
-using System.Collections.Generic;
using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
using TestStatements.Constants;
namespace TestStatementTest.ConstantTests
diff --git a/TestStatements/TestStatementsTest/DataTypes/EnumTestTests.cs b/TestStatements/TestStatementsTest/DataTypes/EnumTestTests.cs
index d9aacc46b..1521d4626 100644
--- a/TestStatements/TestStatementsTest/DataTypes/EnumTestTests.cs
+++ b/TestStatements/TestStatementsTest/DataTypes/EnumTestTests.cs
@@ -1,10 +1,5 @@
using Microsoft.VisualStudio.TestTools.UnitTesting;
-using TestStatements.DataTypes;
using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
using System.IO;
namespace TestStatements.DataTypes.Tests
diff --git a/TestStatements/TestStatementsTest/DataTypes/FormatingTests.cs b/TestStatements/TestStatementsTest/DataTypes/FormatingTests.cs
index a58bdb61c..4084f84fe 100644
--- a/TestStatements/TestStatementsTest/DataTypes/FormatingTests.cs
+++ b/TestStatements/TestStatementsTest/DataTypes/FormatingTests.cs
@@ -1,11 +1,5 @@
using Microsoft.VisualStudio.TestTools.UnitTesting;
-using TestStatements.DataTypes;
using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-using System.IO;
using TestStatements.UnitTesting;
namespace TestStatements.DataTypes.Tests
diff --git a/TestStatements/TestStatementsTest/Diagnostics/DebugExampleTests.cs b/TestStatements/TestStatementsTest/Diagnostics/DebugExampleTests.cs
index fd33b016e..6e58d1318 100644
--- a/TestStatements/TestStatementsTest/Diagnostics/DebugExampleTests.cs
+++ b/TestStatements/TestStatementsTest/Diagnostics/DebugExampleTests.cs
@@ -1,11 +1,5 @@
using Microsoft.VisualStudio.TestTools.UnitTesting;
-using TestStatements.Diagnostics;
using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-using System.Diagnostics;
namespace TestStatements.Diagnostics.Tests
{
diff --git a/TestStatements/TestStatementsTest/Diagnostics/StopWatchExampleTests.cs b/TestStatements/TestStatementsTest/Diagnostics/StopWatchExampleTests.cs
index 2d0f84090..85ff8be3e 100644
--- a/TestStatements/TestStatementsTest/Diagnostics/StopWatchExampleTests.cs
+++ b/TestStatements/TestStatementsTest/Diagnostics/StopWatchExampleTests.cs
@@ -1,6 +1,5 @@
using Microsoft.VisualStudio.TestTools.UnitTesting;
using System;
-using System.Diagnostics;
using TestStatements.UnitTesting;
namespace TestStatements.Diagnostics.Tests
diff --git a/TestStatements/TestStatementsTest/DynamicTestProgramTests.cs b/TestStatements/TestStatementsTest/DynamicTestProgramTests.cs
index ea0dc3ec7..c6bd1e0bd 100644
--- a/TestStatements/TestStatementsTest/DynamicTestProgramTests.cs
+++ b/TestStatements/TestStatementsTest/DynamicTestProgramTests.cs
@@ -1,10 +1,4 @@
using Microsoft.VisualStudio.TestTools.UnitTesting;
-using DynamicSample;
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
using TestStatements.UnitTesting;
namespace DynamicSample.Tests
diff --git a/TestStatements/TestStatementsTest/Helper/ExtensionsTests.cs b/TestStatements/TestStatementsTest/Helper/ExtensionsTests.cs
index 74d14514a..e92b4bed2 100644
--- a/TestStatements/TestStatementsTest/Helper/ExtensionsTests.cs
+++ b/TestStatements/TestStatementsTest/Helper/ExtensionsTests.cs
@@ -1,5 +1,4 @@
using Microsoft.VisualStudio.TestTools.UnitTesting;
-using System.Collections.Concurrent;
using System.Linq;
namespace TestStatements.Helper.Tests
diff --git a/TestStatements/TestStatementsTest/Linq/LinqLookupTests.cs b/TestStatements/TestStatementsTest/Linq/LinqLookupTests.cs
index bbb2a83d0..fd25c3c97 100644
--- a/TestStatements/TestStatementsTest/Linq/LinqLookupTests.cs
+++ b/TestStatements/TestStatementsTest/Linq/LinqLookupTests.cs
@@ -1,10 +1,4 @@
using Microsoft.VisualStudio.TestTools.UnitTesting;
-using TestStatements.Linq;
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
using TestStatements.UnitTesting;
namespace TestStatements.Linq.Tests
diff --git a/TestStatements/TestStatementsTest/ProgramTests.cs b/TestStatements/TestStatementsTest/ProgramTests.cs
index 148c7cdb2..681b8f935 100644
--- a/TestStatements/TestStatementsTest/ProgramTests.cs
+++ b/TestStatements/TestStatementsTest/ProgramTests.cs
@@ -1,10 +1,4 @@
using Microsoft.VisualStudio.TestTools.UnitTesting;
-using DynamicSample;
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
using TestStatements.UnitTesting;
namespace DynamicSample.Tests
@@ -17,6 +11,24 @@ namespace DynamicSample.Tests
[TestClass()]
public class DynamicClassTests : ConsoleTestsBase
{
+ private readonly string cExpMain =
+ "======================================================================\r\n## Example for dynamic class\r\n=======" +
+ "===============================================================\r\n\r\n+-----------------------------------------" +
+ "-----------------\r\n| Show Customers\r\n+----------------------------------------------------------\r\nCustomer:" +
+ " Preston, Chris \r\nCustomer: Hines, Patrick \r\nCustomer: Cameron, Maria \r\nCustomer: Seubert, Roxanne \r\n" +
+ "Customer: Adolphi, Stephan \r\nCustomer: Koch, Paul \r\n----------------------------\r\n\r\n+------------------" +
+ "----------------------------------------\r\n| Show Customers with Contains\r\n+----------------------------------" +
+ "------------------------\r\nList of customers and suppliers \r\nCustomer: Preston, Chris \r\nCustomer: Hines, P" +
+ "atrick \r\nCustomer: Cameron, Maria \r\nCustomer: Seubert, Roxanne \r\nCustomer: Adolphi, Stephan \r\nCustome" +
+ "r: Koch, Paul \r\n----------------------------\r\n\r\n+---------------------------------------------------------" +
+ "-\r\n| Show Suppliers\r\n+----------------------------------------------------------\r\nSupplier: Lucerne Publish" +
+ "ing (https://www.lucernepublishing.com/) \r\nSupplier: Graphic Design Institute (https://www.graphicdesigninstit" +
+ "ute.com/) \r\nSupplier: Fabrikam, Inc. (https://www.fabrikam.com/) \r\nSupplier: Proseware, Inc. (http://www." +
+ "proseware.com/) \r\n----------------------------\r\n\r\n+------------------------------------------------------" +
+ "----\r\n| Show Supplier with Contains\r\n+----------------------------------------------------------\r\nList of c" +
+ "ustomers and suppliers \r\nSupplier: Lucerne Publishing (https://www.lucernepublishing.com/) \r\nSupplier: Grap" +
+ "hic Design Institute (https://www.graphicdesigninstitute.com/) \r\nSupplier: Fabrikam, Inc. (https://www.fabrik" +
+ "am.com/) \r\nSupplier: Proseware, Inc. (http://www.proseware.com/) \r\n----------------------------";
private readonly string cExpShowCustomerContains =
"+----------------------------------------------------------\r\n| Show Customers with Contains\r\n+---------------" +
"-------------------------------------------\r\nList of customers and suppliers \r\nCustomer: Preston, Chris \r" +
@@ -38,114 +50,14 @@ public class DynamicClassTests : ConsoleTestsBase
"-----------------------------\r\nSupplier: Lucerne Publishing (https://www.lucernepublishing.com/) \r\nSupplier:" +
" Graphic Design Institute (https://www.graphicdesigninstitute.com/) \r\nSupplier: Fabrikam, Inc. (https://www.f" +
"abrikam.com/) \r\nSupplier: Proseware, Inc. (http://www.proseware.com/) \r\n----------------------------";
- private readonly string cExpMain2 = @"======================================================================
-## Example for dynamic class
-======================================================================
-+----------------------------------------------------------
-| Show Customers
-+----------------------------------------------------------
-Customer: Preston, Chris
-Customer: Hines, Patrick
-Customer: Cameron, Maria
-Customer: Seubert, Roxanne
-Customer: Adolphi, Stephan
-Customer: Koch, Paul
-----------------------------
-
-+----------------------------------------------------------
-| Show Customers with Contains
-+----------------------------------------------------------
-List of customers and suppliers
-Customer: Preston, Chris
-Customer: Hines, Patrick
-Customer: Cameron, Maria
-Customer: Seubert, Roxanne
-Customer: Adolphi, Stephan
-Customer: Koch, Paul
-----------------------------
-
-+----------------------------------------------------------
-| Show Suppliers
-+----------------------------------------------------------
-Supplier: Lucerne Publishing (https://www.lucernepublishing.com/)
-Supplier: Graphic Design Institute (https://www.graphicdesigninstitute.com/)
-Supplier: Fabrikam, Inc. (https://www.fabrikam.com/)
-Supplier: Proseware, Inc. (http://www.proseware.com/)
-----------------------------
-
-+----------------------------------------------------------
-| Show Supplier with Contains
-+----------------------------------------------------------
-List of customers and suppliers
-Supplier: Lucerne Publishing (https://www.lucernepublishing.com/)
-Supplier: Graphic Design Institute (https://www.graphicdesigninstitute.com/)
-Supplier: Fabrikam, Inc. (https://www.fabrikam.com/)
-Supplier: Proseware, Inc. (http://www.proseware.com/)
-----------------------------
-======================================================================
-## 2. Example for dynamic class
-======================================================================
-strName
-strStreet
-strCity
-strPLZ
-strCountry
-----------------------------
-P. Mustermann
-Somestreet 35
-12345 Somplace
-Somewhere
-----------------------------
-Name: P. Mustermann
-Street: Somestreet 35
-PLZ: 12345
-City: Somplace
-Country: Somewhere
-----------------------------
-P. Musterfrau
-Someotherstreet 1
-54321 Anyplace
-Nowhere
-----------------------------
-Name: P. Musterfrau
-Street: Someotherstreet 1
-PLZ: 54321
-City: Anyplace
-Country: Nowhere
-----------------------------
-======================================================================
-## 2b. Example for static class
-======================================================================
-P. Mustermann
-Somestreet 35
-12345 Somplace
-Somewhere
-----------------------------
-Name: P. Mustermann
-Street: Somestreet 35
-PLZ: 12345
-City: Somplace
-Country: Somewhere
-----------------------------
-P. Musterfrau
-Someotherstreet 1
-54321 Anyplace
-Nowhere
-----------------------------
-Name: P. Musterfrau
-Street: Someotherstreet 1
-PLZ: 54321
-City: Anyplace
-Country: Nowhere
-----------------------------";
///
/// Defines the test method MainTest.
///
[TestMethod()]
public void MainTest()
{
- AssertConsoleInOutputArgs(cExpMain2,"\r\n",new string[] { },DynamicTestProgram.Main);
+ AssertConsoleInOutputArgs(cExpMain,"\r\n",new string[] { },DynamicTestProgram.Main);
}
///
diff --git a/TestStatements/TestStatementsTest/Reflection/AssemblyExampleTests.cs b/TestStatements/TestStatementsTest/Reflection/AssemblyExampleTests.cs
index 039da98c1..8eb2ec9b2 100644
--- a/TestStatements/TestStatementsTest/Reflection/AssemblyExampleTests.cs
+++ b/TestStatements/TestStatementsTest/Reflection/AssemblyExampleTests.cs
@@ -6,7 +6,6 @@
using System.Text;
using System.Threading.Tasks;
using TestStatements.UnitTesting;
-using System.Reflection;
namespace TestStatements.Reflection.Tests
{
@@ -19,16 +18,15 @@ namespace TestStatements.Reflection.Tests
public class AssemblyExampleTests : ConsoleTestsBase
{
private readonly string cExpExampleMain =
- //"Assembly Full Name:\r\nTestStatements, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null\r\n\nName: TestStatements\r\nVersion: 1.0\r\n\nAssembly CodeBase:\r\nfile:///C:/Projekte/CSharp/bin/Debug/TestStatements.EXE\r\nTestStatements.Program\r\nTestStatements.Threading.Tasks.TaskExample\r\n '-> .ExampleMain()\r\n '-> .ExampleMain1()\r\n '-> .ExampleMain2()\r\n '-> .ExampleMain3()\r\n '-> .ExampleMain4()\r\nTestStatements.Reflection.AssemblyExample\r\n '-> .ExampleMain()\r\nTestStatements.Reflection.S\r\nTestStatements.Reflection.ReflectionExample\r\n '-> .ExampleMain()\r\nTestStatements.Linq.Package\r\nTestStatements.Linq.LinqLookup\r\n '-> .LookupExample()\r\n '-> .ShowContains()\r\n '-> .ShowIEnumerable()\r\n '-> .ShowCount()\r\n '-> .ShowGrouping()\r\nTestStatements.Diagnostics.StopWatchExample\r\n '-> .ExampleMain()\r\n '-> .ExampleMain1()\r\n '-> .ExampleMain2()\r\n '-> .DisplayTimerProperties()\r\nTestStatements.DataTypes.EnumTest\r\n '-> .MainTest()\r\nTestStatements.DataTypes.Formating\r\n '-> .CombinedFormating()\r\n '-> .IndexKomponent()\r\n '-> .IndexKomponent2()\r\n '-> .IndentationKomponent()\r\n '-> .EscapeSequence()\r\n '-> .CodeExamples1()\r\n '-> .CodeExamples2()\r\n '-> .CodeExamples3()\r\n '-> .CodeExamples4()\r\nTestStatements.Constants.Constants\r\nTestStatements.Collection.Generic.ComparerExample\r\n '-> .ComparerExampleMain(String[] args)\r\n '-> .ShowSortWithLengthFirstComparer()\r\n '-> .ShowSortwithDefaultComparer()\r\n '-> .ShowLengthFirstComparer()\r\nTestStatements.Collection.Generic.BoxLengthFirst\r\nTestStatements.Collection.Generic.BoxComp\r\nTestStatements.Collection.Generic.Box\r\nTestStatements.Collection.Generic.DictionaryExample\r\n '-> .DictionaryExampleMain()\r\n '-> .TryAddExisting()\r\n '-> .ShowIndex1()\r\n '-> .ShowIndex2()\r\n '-> .ShowIndex3()\r\n '-> .ShowIndex4()\r\n '-> .ShowTryGetValue()\r\n '-> .ShowContainsKey()\r\n '-> .ShowValueCollection()\r\n '-> .ShowKeyCollection()\r\n '-> .ShowRemove()\r\nTestStatements.Collection.Generic.SortedListExample\r\n '-> .SortedListMain()\r\n '-> .ShowValues1()\r\n '-> .ShowValues2()\r\n '-> .ShowKeys1()\r\n '-> .ShowKeys2()\r\n '-> .ShowRemove()\r\n '-> .ShowForEach()\r\n '-> .ShowContainsKey()\r\n '-> .ShowTryGetValue()\r\n '-> .TestIndexr()\r\n '-> .TestAddExisting()\r\nTestStatements.Collection.Generic.TestHashSet\r\n '-> .ShowHashSet()\r\nTestStatements.Collection.Generic.Part\r\nTestStatements.Collection.Generic.TestList\r\n '-> .ListMain()\r\n '-> .ShowContains()\r\n '-> .ShowInsert()\r\n '-> .ShowIndex()\r\n '-> .ShowRemove1()\r\n '-> .ShowRemove2()\r\nTestStatements.Collection.Generic.DinosaurExample\r\n '-> .ListDinos()\r\n '-> .ShowCreateData()\r\n '-> .ShowContains()\r\n '-> .ShowInsert()\r\n '-> .ShowItemProperty()\r\n '-> .ShowRemove()\r\n '-> .ShowTrimExcess()\r\n '-> .ShowClear()\r\nTestStatements.ClassesAndObjects.Members\r\n '-> .set_OnChange(EventHandler value)\r\n '-> .aMethod()\r\n '-> .set_aProperty(Int32 value)\r\nTestStatements.Anweisungen.Checking\r\n '-> .CheckedUnchecked(String[] args)\r\nTestStatements.Anweisungen.ExceptionHandling\r\n '-> .DoTryCatch(String[] args)\r\nTestStatements.Anweisungen.Account\r\nTestStatements.Anweisungen.Locking\r\n '-> .DoLockTest(String[] args)\r\nTestStatements.Anweisungen.ProgramFlow\r\n '-> .DoBreakStatement(String[] args)\r\n '-> .DoContinueStatement(String[] args)\r\n '-> .DoGoToStatement(String[] args)\r\nTestStatements.Anweisungen.Expressions\r\n '-> .DoExpressions(String[] args)\r\nTestStatements.Anweisungen.Declarations\r\n '-> .DoVarDeclarations(String[] args)\r\n '-> .DoConstantDeclarations(String[] args)\r\nTestStatements.Anweisungen.ConditionalStatement\r\n '-> .DoIfStatement(String[] args)\r\n '-> .DoSwitchStatement(String[] args)\r\nTestStatements.Anweisungen.LoopStatements\r\n '-> .DoWhileStatement(String[] args)\r\n '-> .DoDoStatement(String[] args)\r\n '-> .DoForStatement(String[] args)\r\n '-> .DoForEachStatement(String[] args)\r\nTestStatements.Anweisungen.RandomExample\r\n '-> .ExampleMain1()\r\n '-> .ExampleMain2()\r\n '-> .ExampleMain3()\r\nTestStatements.Anweisungen.ReturnStatement\r\n '-> .DoReturnStatement(String[] args)\r\nTestStatements.Anweisungen.SwitchStatement\r\n '-> .SwitchExample1()\r\n '-> .SwitchExample2()\r\n '-> .SwitchExample3()\r\n '-> .SwitchExample4()\r\n '-> .SwitchExample5()\r\n '-> .SwitchExample6()\r\n '-> .SwitchExample7()\r\nTestStatements.Anweisungen.DiceLibrary\r\nTestStatements.Anweisungen.Shape\r\nTestStatements.Anweisungen.Rectangle\r\nTestStatements.Anweisungen.Square\r\nTestStatements.Anweisungen.Circle\r\nTestStatements.Anweisungen.SwitchStatement2\r\n '-> .SwitchExample21()\r\nTestStatements.Anweisungen.YieldStatement\r\n '-> .DoYieldStatement(String[] args)\r\nTestStatements.Anweisungen.UsingStatement\r\n '-> .DoUsingStatement(String[] args)\r\n\r\nTestStatements.Threading.Tasks.TaskExample+<>c__DisplayClass3_0\r\nTestStatements.Threading.Tasks.TaskExample+<>c__DisplayClass3_1\r\nTestStatements.Threading.Tasks.TaskExample+<>c__DisplayClass5_0\r\nTestStatements.Threading.Tasks.TaskExample+<>c__DisplayClass5_1\r\nTestStatements.Threading.Tasks.TaskExample+d__5\r\nTestStatements.Threading.Tasks.TaskExample+<>c__DisplayClass6_0\r\nTestStatements.Threading.Tasks.TaskExample+<>c__DisplayClass7_0\r\nTestStatements.Reflection.ReflectionExample+NestedClass\r\nTestStatements.Reflection.ReflectionExample+INested\r\nTestStatements.Linq.LinqLookup+<>c\r\nTestStatements.DataTypes.EnumTest+Days\r\nTestStatements.DataTypes.EnumTest+BoilingPoints\r\nTestStatements.DataTypes.EnumTest+Colors\r\nTestStatements.DataTypes.Formating+<>c\r\nTestStatements.Anweisungen.SwitchStatement+Color\r\nTestStatements.Anweisungen.SwitchStatement+<>c\r\nTestStatements.Anweisungen.SwitchStatement+<>c__12`1\r\nTestStatements.Anweisungen.YieldStatement+d__0\r\n+__StaticArrayInitTypeSize=20\r\nTestStatements.Threading.Tasks.TaskExample+<>c__DisplayClass6_0+<b__0>d\r\nTestStatements.Threading.Tasks.TaskExample+<>c__DisplayClass7_0+<b__0>d\r\n\nExample.SampleMethod(42) executes.\r\nSampleMethod returned 84.\r\n\nAssembly entry point:\r\nVoid Main(System.String[])";
- //"Assembly Full Name:\r\nTestStatements, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null\r\n\nName: TestStatements\r\nVersion: 1.0\r\n\nAssembly CodeBase:\r\nfile:///C:/Users/DEROSCHR/Documents/Projekte/CSharp/bin/Debug/TestStatements.EXE\r\nTestStatements.Program\r\nTestStatements.Threading.Tasks.AsyncBreakfast\r\n '-> .AsyncBreakfast_Main(String[] args)\r\nTestStatements.Threading.Tasks.Juice\r\nTestStatements.Threading.Tasks.Toast\r\nTestStatements.Threading.Tasks.Bacon\r\nTestStatements.Threading.Tasks.Egg\r\nTestStatements.Threading.Tasks.Coffee\r\nTestStatements.Threading.Tasks.TaskExample\r\n '-> .ExampleMain()\r\n '-> .ExampleMain1()\r\n '-> .ExampleMain2()\r\n '-> .ExampleMain3()\r\n '-> .ExampleMain4()\r\nTestStatements.SystemNS.System_Namespace\r\nTestStatements.Reflection.AssemblyExample\r\n '-> .ExampleMain()\r\nTestStatements.Reflection.S\r\nTestStatements.Reflection.ReflectionExample\r\n '-> .ExampleMain()\r\nTestStatements.Linq.Package\r\nTestStatements.Linq.LinqLookup\r\n '-> .LookupExample()\r\n '-> .ShowContains()\r\n '-> .ShowIEnumerable()\r\n '-> .ShowCount()\r\n '-> .ShowGrouping()\r\nTestStatements.Diagnostics.StopWatchExample\r\n '-> .ExampleMain()\r\n '-> .ExampleMain1()\r\n '-> .ExampleMain2()\r\n '-> .DisplayTimerProperties()\r\nTestStatements.CS_Concepts.TypeSystem\r\n '-> .All()\r\n '-> .UseOfTypes()\r\n '-> .DelareVariables()\r\n '-> .ValueTypes1()\r\n '-> .ValueTypes2()\r\n '-> .ValueTypes3()\r\n '-> .ValueTypes4()\r\nTestStatements.DataTypes.EnumTest\r\n '-> .MainTest()\r\nTestStatements.DataTypes.Formating\r\n '-> .CombinedFormating()\r\n '-> .IndexKomponent()\r\n '-> .IndexKomponent2()\r\n '-> .IndentationKomponent()\r\n '-> .EscapeSequence()\r\n '-> .CodeExamples1()\r\n '-> .CodeExamples2()\r\n '-> .CodeExamples3()\r\n '-> .CodeExamples4()\r\nTestStatements.DataTypes.IntegratedTypes\r\nTestStatements.DataTypes.StringEx\r\n '-> .AllTests()\r\n '-> .StringEx1()\r\n '-> .StringEx2()\r\n '-> .StringEx3()\r\n '-> .StringEx4()\r\n '-> .StringEx5()\r\n '-> .UnicodeEx1()\r\n '-> .StringSurogarteEx1()\r\nTestStatements.Constants.Constants\r\nTestStatements.Collection.Generic.ComparerExample\r\n '-> .ComparerExampleMain(String[] args)\r\n '-> .ShowSortWithLengthFirstComparer()\r\n '-> .ShowSortwithDefaultComparer()\r\n '-> .ShowLengthFirstComparer()\r\nTestStatements.Collection.Generic.BoxLengthFirst\r\nTestStatements.Collection.Generic.BoxComp\r\nTestStatements.Collection.Generic.Box\r\nTestStatements.Collection.Generic.DictionaryExample\r\n '-> .DictionaryExampleMain()\r\n '-> .TryAddExisting()\r\n '-> .ShowIndex1()\r\n '-> .ShowIndex2()\r\n '-> .ShowIndex3()\r\n '-> .ShowIndex4()\r\n '-> .ShowTryGetValue()\r\n '-> .ShowContainsKey()\r\n '-> .ShowValueCollection()\r\n '-> .ShowKeyCollection()\r\n '-> .ShowRemove()\r\nTestStatements.Collection.Generic.SortedListExample\r\n '-> .SortedListMain()\r\n '-> .ShowValues1()\r\n '-> .ShowValues2()\r\n '-> .ShowKeys1()\r\n '-> .ShowKeys2()\r\n '-> .ShowRemove()\r\n '-> .ShowForEach()\r\n '-> .ShowContainsKey()\r\n '-> .ShowTryGetValue()\r\n '-> .TestIndexr()\r\n '-> .TestAddExisting()\r\nTestStatements.Collection.Generic.TestHashSet\r\n '-> .ShowHashSet()\r\nTestStatements.Collection.Generic.Part\r\nTestStatements.Collection.Generic.TestList\r\n '-> .ListMain()\r\n '-> .ShowContains()\r\n '-> .ShowInsert()\r\n '-> .ShowIndex()\r\n '-> .ShowRemove1()\r\n '-> .ShowRemove2()\r\nTestStatements.Collection.Generic.DinosaurExample\r\n '-> .ListDinos()\r\n '-> .ShowCreateData()\r\n '-> .ShowContains()\r\n '-> .ShowInsert()\r\n '-> .ShowItemProperty()\r\n '-> .ShowRemove()\r\n '-> .ShowTrimExcess()\r\n '-> .ShowClear()\r\nTestStatements.ClassesAndObjects.Members\r\n '-> .set_OnChange(EventHandler value)\r\n '-> .aMethod()\r\n '-> .set_aProperty(Int32 value)\r\nTestStatements.Anweisungen.Checking\r\n '-> .CheckedUnchecked(String[] args)\r\nTestStatements.Anweisungen.ExceptionHandling\r\n '-> .DoTryCatch(String[] args)\r\nTestStatements.Anweisungen.Account\r\nTestStatements.Anweisungen.Locking\r\n '-> .DoLockTest(String[] args)\r\nTestStatements.Anweisungen.ProgramFlow\r\n '-> .DoBreakStatement(String[] args)\r\n '-> .DoContinueStatement(String[] args)\r\n '-> .DoGoToStatement(String[] args)\r\nTestStatements.Anweisungen.Expressions\r\n '-> .DoExpressions(String[] args)\r\nTestStatements.Anweisungen.Declarations\r\n '-> .DoVarDeclarations(String[] args)\r\n '-> .DoConstantDeclarations(String[] args)\r\nTestStatements.Anweisungen.ConditionalStatement\r\n '-> .DoIfStatement(String[] args)\r\n '-> .DoIfStatement2(String[] args)\r\n '-> .DoIfStatement3()\r\n '-> .DoSwitchStatement(String[] args)\r\n '-> .DoSwitchStatement1()\r\nTestStatements.Anweisungen.LoopStatements\r\n '-> .DoWhileStatement(String[] args)\r\n '-> .DoDoStatement(String[] args)\r\n '-> .DoDoStatement2(String[] args)\r\n '-> .DoDoStatement3(String[] args)\r\n '-> .DoDoDoStatement(String[] args)\r\n '-> .DoDoDoStatement2(String[] args)\r\n '-> .DoDoWhileNestedStatement2(String[] args)\r\n '-> .DoForStatement(String[] args)\r\n '-> .DoForStatement2(String[] args)\r\n '-> .DoForEachStatement(String[] args)\r\nTestStatements.Anweisungen.RandomExample\r\n '-> .ExampleMain1()\r\n '-> .ExampleMain2()\r\n '-> .ExampleMain3()\r\nTestStatements.Anweisungen.ReturnStatement\r\n '-> .DoReturnStatement(String[] args)\r\nTestStatements.Anweisungen.SwitchStatement\r\n '-> .SwitchExample1()\r\n '-> .SwitchExample2()\r\n '-> .SwitchExample3()\r\n '-> .SwitchExample4()\r\n '-> .SwitchExample5()\r\n '-> .SwitchExample6()\r\n '-> .SwitchExample7()\r\nTestStatements.Anweisungen.DiceLibrary\r\nTestStatements.Anweisungen.Shape\r\nTestStatements.Anweisungen.Rectangle\r\nTestStatements.Anweisungen.Square\r\nTestStatements.Anweisungen.Circle\r\nTestStatements.Anweisungen.SwitchStatement2\r\n '-> .SwitchExample21()\r\nTestStatements.Anweisungen.YieldStatement\r\n '-> .DoYieldStatement(String[] args)\r\nTestStatements.Anweisungen.UsingStatement\r\n '-> .DoUsingStatement(String[] args)\r\n\r\nTestStatements.Threading.Tasks.AsyncBreakfast+d__1\r\nTestStatements.Threading.Tasks.AsyncBreakfast+d__2\r\nTestStatements.Threading.Tasks.AsyncBreakfast+d__3\r\nTestStatements.Threading.Tasks.AsyncBreakfast+d__4\r\nTestStatements.Threading.Tasks.AsyncBreakfast+d__5\r\nTestStatements.Threading.Tasks.AsyncBreakfast+d__6\r\nTestStatements.Threading.Tasks.AsyncBreakfast+d__7\r\nTestStatements.Threading.Tasks.TaskExample+<>c__DisplayClass3_0\r\nTestStatements.Threading.Tasks.TaskExample+<>c__DisplayClass3_1\r\nTestStatements.Threading.Tasks.TaskExample+<>c__DisplayClass5_0\r\nTestStatements.Threading.Tasks.TaskExample+<>c__DisplayClass5_1\r\nTestStatements.Threading.Tasks.TaskExample+d__5\r\nTestStatements.Threading.Tasks.TaskExample+<>c__DisplayClass6_0\r\nTestStatements.Threading.Tasks.TaskExample+<>c__DisplayClass7_0\r\nTestStatements.Reflection.ReflectionExample+NestedClass\r\nTestStatements.Reflection.ReflectionExample+INested\r\nTestStatements.Linq.LinqLookup+<>c\r\nTestStatements.CS_Concepts.TypeSystem+Coords\r\nTestStatements.CS_Concepts.TypeSystem+FileMode\r\nTestStatements.CS_Concepts.TypeSystem+MyClass\r\nTestStatements.CS_Concepts.TypeSystem+<>c__DisplayClass2_0\r\nTestStatements.CS_Concepts.TypeSystem+<>c\r\nTestStatements.CS_Concepts.TypeSystem+d__10\r\nTestStatements.DataTypes.EnumTest+Days\r\nTestStatements.DataTypes.EnumTest+BoilingPoints\r\nTestStatements.DataTypes.EnumTest+Colors\r\nTestStatements.DataTypes.Formating+<>c\r\nTestStatements.Anweisungen.SwitchStatement+Color\r\nTestStatements.Anweisungen.SwitchStatement+<>c\r\nTestStatements.Anweisungen.SwitchStatement+<>c__12`1\r\nTestStatements.Anweisungen.YieldStatement+d__0\r\n+__StaticArrayInitTypeSize=6\r\n+__StaticArrayInitTypeSize=20\r\n+__StaticArrayInitTypeSize=24\r\nTestStatements.Threading.Tasks.TaskExample+<>c__DisplayClass6_0+<b__0>d\r\nTestStatements.Threading.Tasks.TaskExample+<>c__DisplayClass7_0+<b__0>d\r\n\nExample.SampleMethod(42) executes.\r\nSampleMethod returned 84.\r\n\nAssembly entry point:\r\nVoid Main(System.String[])"
+ //"Assembly Full Name:\r\nTestStatements, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null\r\n\nName: TestStatements\r\nVersion: 1.0\r\n\nAssembly CodeBase:\r\nfile:///C:/Projekte/CSharp/bin/Debug/TestStatements.EXE\r\nTestStatements.Program\r\nTestStatements.Threading.Tasks.TaskExample\r\n '-> .ExampleMain()\r\n '-> .ExampleMain1()\r\n '-> .ExampleMain2()\r\n '-> .ExampleMain3()\r\n '-> .ExampleMain4()\r\nTestStatements.Reflection.AssemblyExample\r\n '-> .ExampleMain()\r\nTestStatements.Reflection.S\r\nTestStatements.Reflection.ReflectionExample\r\n '-> .ExampleMain()\r\nTestStatements.Linq.Package\r\nTestStatements.Linq.LinqLookup\r\n '-> .LookupExample()\r\n '-> .ShowContains()\r\n '-> .ShowIEnumerable()\r\n '-> .ShowCount()\r\n '-> .ShowGrouping()\r\nTestStatements.Diagnostics.StopWatchExample\r\n '-> .ExampleMain()\r\n '-> .ExampleMain1()\r\n '-> .ExampleMain2()\r\n '-> .DisplayTimerProperties()\r\nTestStatements.DataTypes.EnumTest\r\n '-> .MainTest()\r\nTestStatements.DataTypes.Formating\r\n '-> .CombinedFormating()\r\n '-> .IndexKomponent()\r\n '-> .IndexKomponent2()\r\n '-> .IndentationKomponent()\r\n '-> .EscapeSequence()\r\n '-> .CodeExamples1()\r\n '-> .CodeExamples2()\r\n '-> .CodeExamples3()\r\n '-> .CodeExamples4()\r\nTestStatements.Constants.Constants\r\nTestStatements.Collection.Generic.ComparerExample\r\n '-> .ComparerExampleMain(String[] args)\r\n '-> .ShowSortWithLengthFirstComparer()\r\n '-> .ShowSortwithDefaultComparer()\r\n '-> .ShowLengthFirstComparer()\r\nTestStatements.Collection.Generic.BoxLengthFirst\r\nTestStatements.Collection.Generic.BoxComp\r\nTestStatements.Collection.Generic.Box\r\nTestStatements.Collection.Generic.DictionaryExample\r\n '-> .DictionaryExampleMain()\r\n '-> .TryAddExisting()\r\n '-> .ShowIndex1()\r\n '-> .ShowIndex2()\r\n '-> .ShowIndex3()\r\n '-> .ShowIndex4()\r\n '-> .ShowTryGetValue()\r\n '-> .ShowContainsKey()\r\n '-> .ShowValueCollection()\r\n '-> .ShowKeyCollection()\r\n '-> .ShowRemove()\r\nTestStatements.Collection.Generic.SortedListExample\r\n '-> .SortedListMain()\r\n '-> .ShowValues1()\r\n '-> .ShowValues2()\r\n '-> .ShowKeys1()\r\n '-> .ShowKeys2()\r\n '-> .ShowRemove()\r\n '-> .ShowForEach()\r\n '-> .ShowContainsKey()\r\n '-> .ShowTryGetValue()\r\n '-> .TestIndexr()\r\n '-> .TestAddExisting()\r\nTestStatements.Collection.Generic.TestHashSet\r\n '-> .ShowHashSet()\r\nTestStatements.Collection.Generic.Part\r\nTestStatements.Collection.Generic.TestList\r\n '-> .ListMain()\r\n '-> .ShowContains()\r\n '-> .ShowInsert()\r\n '-> .ShowIndex()\r\n '-> .ShowRemove1()\r\n '-> .ShowRemove2()\r\nTestStatements.Collection.Generic.DinosaurExample\r\n '-> .ListDinos()\r\n '-> .ShowCreateData()\r\n '-> .ShowContains()\r\n '-> .ShowInsert()\r\n '-> .ShowItemProperty()\r\n '-> .ShowRemove()\r\n '-> .ShowTrimExcess()\r\n '-> .ShowClear()\r\nTestStatements.ClassesAndObjects.Members\r\n '-> .set_OnChange(EventHandler value)\r\n '-> .aMethod()\r\n '-> .set_aProperty(Int32 value)\r\nTestStatements.Anweisungen.Checking\r\n '-> .CheckedUnchecked(String[] args)\r\nTestStatements.Anweisungen.ExceptionHandling\r\n '-> .DoTryCatch(String[] args)\r\nTestStatements.Anweisungen.Account\r\nTestStatements.Anweisungen.Locking\r\n '-> .DoLockTest(String[] args)\r\nTestStatements.Anweisungen.ProgramFlow\r\n '-> .DoBreakStatement(String[] args)\r\n '-> .DoContinueStatement(String[] args)\r\n '-> .DoGoToStatement(String[] args)\r\nTestStatements.Anweisungen.Expressions\r\n '-> .DoExpressions(String[] args)\r\nTestStatements.Anweisungen.Declarations\r\n '-> .DoVarDeclarations(String[] args)\r\n '-> .DoConstantDeclarations(String[] args)\r\nTestStatements.Anweisungen.ConditionalStatement\r\n '-> .DoIfStatement(String[] args)\r\n '-> .DoSwitchStatement(String[] args)\r\nTestStatements.Anweisungen.LoopStatements\r\n '-> .DoWhileStatement(String[] args)\r\n '-> .DoDoStatement(String[] args)\r\n '-> .DoForStatement(String[] args)\r\n '-> .DoForEachStatement(String[] args)\r\nTestStatements.Anweisungen.RandomExample\r\n '-> .ExampleMain1()\r\n '-> .ExampleMain2()\r\n '-> .ExampleMain3()\r\nTestStatements.Anweisungen.ReturnStatement\r\n '-> .DoReturnStatement(String[] args)\r\nTestStatements.Anweisungen.SwitchStatement\r\n '-> .SwitchExample1()\r\n '-> .SwitchExample2()\r\n '-> .SwitchExample3()\r\n '-> .SwitchExample4()\r\n '-> .SwitchExample5()\r\n '-> .SwitchExample6()\r\n '-> .SwitchExample7()\r\nTestStatements.Anweisungen.DiceLibrary\r\nTestStatements.Anweisungen.Shape\r\nTestStatements.Anweisungen.Rectangle\r\nTestStatements.Anweisungen.Square\r\nTestStatements.Anweisungen.Circle\r\nTestStatements.Anweisungen.SwitchStatement2\r\n '-> .SwitchExample21()\r\nTestStatements.Anweisungen.YieldStatement\r\n '-> .DoYieldStatement(String[] args)\r\nTestStatements.Anweisungen.UsingStatement\r\n '-> .DoUsingStatement(String[] args)\r\n\r\nTestStatements.Threading.Tasks.TaskExample+<>c__DisplayClass3_0\r\nTestStatements.Threading.Tasks.TaskExample+<>c__DisplayClass3_1\r\nTestStatements.Threading.Tasks.TaskExample+<>c__DisplayClass5_0\r\nTestStatements.Threading.Tasks.TaskExample+<>c__DisplayClass5_1\r\nTestStatements.Threading.Tasks.TaskExample+d__5\r\nTestStatements.Threading.Tasks.TaskExample+<>c__DisplayClass6_0\r\nTestStatements.Threading.Tasks.TaskExample+<>c__DisplayClass7_0\r\nTestStatements.Reflection.ReflectionExample+NestedClass\r\nTestStatements.Reflection.ReflectionExample+INested\r\nTestStatements.Linq.LinqLookup+<>c\r\nTestStatements.DataTypes.EnumTest+Days\r\nTestStatements.DataTypes.EnumTest+BoilingPoints\r\nTestStatements.DataTypes.EnumTest+Colors\r\nTestStatements.DataTypes.Formating+<>c\r\nTestStatements.Anweisungen.SwitchStatement+Color\r\nTestStatements.Anweisungen.SwitchStatement+<>c\r\nTestStatements.Anweisungen.SwitchStatement+<>c__12`1\r\nTestStatements.Anweisungen.YieldStatement+d__0\r\n+__StaticArrayInitTypeSize=20\r\nTestStatements.Threading.Tasks.TaskExample+<>c__DisplayClass6_0+<b__0>d\r\nTestStatements.Threading.Tasks.TaskExample+<>c__DisplayClass7_0+<b__0>d\r\n\nExample.SampleMethod(42) executes.\r\nSampleMethod returned 84.\r\n\nAssembly entry point:\r\nVoid Main(System.String[])";
+ //"Assembly Full Name:\r\nTestStatements, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null\r\n\nName: TestStatements\r\nVersion: 1.0\r\n\nAssembly CodeBase:\r\nfile:///C:/Users/DEROSCHR/Documents/Projekte/CSharp/bin/Debug/TestStatements.EXE\r\nTestStatements.Program\r\nTestStatements.Threading.Tasks.AsyncBreakfast\r\n '-> .AsyncBreakfast_Main(String[] args)\r\nTestStatements.Threading.Tasks.Juice\r\nTestStatements.Threading.Tasks.Toast\r\nTestStatements.Threading.Tasks.Bacon\r\nTestStatements.Threading.Tasks.Egg\r\nTestStatements.Threading.Tasks.Coffee\r\nTestStatements.Threading.Tasks.TaskExample\r\n '-> .ExampleMain()\r\n '-> .ExampleMain1()\r\n '-> .ExampleMain2()\r\n '-> .ExampleMain3()\r\n '-> .ExampleMain4()\r\nTestStatements.SystemNS.System_Namespace\r\nTestStatements.Reflection.AssemblyExample\r\n '-> .ExampleMain()\r\nTestStatements.Reflection.S\r\nTestStatements.Reflection.ReflectionExample\r\n '-> .ExampleMain()\r\nTestStatements.Linq.Package\r\nTestStatements.Linq.LinqLookup\r\n '-> .LookupExample()\r\n '-> .ShowContains()\r\n '-> .ShowIEnumerable()\r\n '-> .ShowCount()\r\n '-> .ShowGrouping()\r\nTestStatements.Diagnostics.StopWatchExample\r\n '-> .ExampleMain()\r\n '-> .ExampleMain1()\r\n '-> .ExampleMain2()\r\n '-> .DisplayTimerProperties()\r\nTestStatements.CS_Concepts.TypeSystem\r\n '-> .All()\r\n '-> .UseOfTypes()\r\n '-> .DelareVariables()\r\n '-> .ValueTypes1()\r\n '-> .ValueTypes2()\r\n '-> .ValueTypes3()\r\n '-> .ValueTypes4()\r\nTestStatements.DataTypes.EnumTest\r\n '-> .MainTest()\r\nTestStatements.DataTypes.Formating\r\n '-> .CombinedFormating()\r\n '-> .IndexKomponent()\r\n '-> .IndexKomponent2()\r\n '-> .IndentationKomponent()\r\n '-> .EscapeSequence()\r\n '-> .CodeExamples1()\r\n '-> .CodeExamples2()\r\n '-> .CodeExamples3()\r\n '-> .CodeExamples4()\r\nTestStatements.DataTypes.IntegratedTypes\r\nTestStatements.DataTypes.StringEx\r\n '-> .AllTests()\r\n '-> .StringEx1()\r\n '-> .StringEx2()\r\n '-> .StringEx3()\r\n '-> .StringEx4()\r\n '-> .StringEx5()\r\n '-> .UnicodeEx1()\r\n '-> .StringSurogarteEx1()\r\nTestStatements.Constants.Constants\r\nTestStatements.Collection.Generic.ComparerExample\r\n '-> .ComparerExampleMain(String[] args)\r\n '-> .ShowSortWithLengthFirstComparer()\r\n '-> .ShowSortwithDefaultComparer()\r\n '-> .ShowLengthFirstComparer()\r\nTestStatements.Collection.Generic.BoxLengthFirst\r\nTestStatements.Collection.Generic.BoxComp\r\nTestStatements.Collection.Generic.Box\r\nTestStatements.Collection.Generic.DictionaryExample\r\n '-> .DictionaryExampleMain()\r\n '-> .TryAddExisting()\r\n '-> .ShowIndex1()\r\n '-> .ShowIndex2()\r\n '-> .ShowIndex3()\r\n '-> .ShowIndex4()\r\n '-> .ShowTryGetValue()\r\n '-> .ShowContainsKey()\r\n '-> .ShowValueCollection()\r\n '-> .ShowKeyCollection()\r\n '-> .ShowRemove()\r\nTestStatements.Collection.Generic.SortedListExample\r\n '-> .SortedListMain()\r\n '-> .ShowValues1()\r\n '-> .ShowValues2()\r\n '-> .ShowKeys1()\r\n '-> .ShowKeys2()\r\n '-> .ShowRemove()\r\n '-> .ShowForEach()\r\n '-> .ShowContainsKey()\r\n '-> .ShowTryGetValue()\r\n '-> .TestIndexr()\r\n '-> .TestAddExisting()\r\nTestStatements.Collection.Generic.TestHashSet\r\n '-> .ShowHashSet()\r\nTestStatements.Collection.Generic.Part\r\nTestStatements.Collection.Generic.TestList\r\n '-> .ListMain()\r\n '-> .ShowContains()\r\n '-> .ShowInsert()\r\n '-> .ShowIndex()\r\n '-> .ShowRemove1()\r\n '-> .ShowRemove2()\r\nTestStatements.Collection.Generic.DinosaurExample\r\n '-> .ListDinos()\r\n '-> .ShowCreateData()\r\n '-> .ShowContains()\r\n '-> .ShowInsert()\r\n '-> .ShowItemProperty()\r\n '-> .ShowRemove()\r\n '-> .ShowTrimExcess()\r\n '-> .ShowClear()\r\nTestStatements.ClassesAndObjects.Members\r\n '-> .set_OnChange(EventHandler value)\r\n '-> .aMethod()\r\n '-> .set_aProperty(Int32 value)\r\nTestStatements.Anweisungen.Checking\r\n '-> .CheckedUnchecked(String[] args)\r\nTestStatements.Anweisungen.ExceptionHandling\r\n '-> .DoTryCatch(String[] args)\r\nTestStatements.Anweisungen.Account\r\nTestStatements.Anweisungen.Locking\r\n '-> .DoLockTest(String[] args)\r\nTestStatements.Anweisungen.ProgramFlow\r\n '-> .DoBreakStatement(String[] args)\r\n '-> .DoContinueStatement(String[] args)\r\n '-> .DoGoToStatement(String[] args)\r\nTestStatements.Anweisungen.Expressions\r\n '-> .DoExpressions(String[] args)\r\nTestStatements.Anweisungen.Declarations\r\n '-> .DoVarDeclarations(String[] args)\r\n '-> .DoConstantDeclarations(String[] args)\r\nTestStatements.Anweisungen.ConditionalStatement\r\n '-> .DoIfStatement(String[] args)\r\n '-> .DoIfStatement2(String[] args)\r\n '-> .DoIfStatement3()\r\n '-> .DoSwitchStatement(String[] args)\r\n '-> .DoSwitchStatement1()\r\nTestStatements.Anweisungen.LoopStatements\r\n '-> .DoWhileStatement(String[] args)\r\n '-> .DoDoStatement(String[] args)\r\n '-> .DoDoStatement2(String[] args)\r\n '-> .DoDoStatement3(String[] args)\r\n '-> .DoDoDoStatement(String[] args)\r\n '-> .DoDoDoStatement2(String[] args)\r\n '-> .DoDoWhileNestedStatement2(String[] args)\r\n '-> .DoForStatement(String[] args)\r\n '-> .DoForStatement2(String[] args)\r\n '-> .DoForEachStatement(String[] args)\r\nTestStatements.Anweisungen.RandomExample\r\n '-> .ExampleMain1()\r\n '-> .ExampleMain2()\r\n '-> .ExampleMain3()\r\nTestStatements.Anweisungen.ReturnStatement\r\n '-> .DoReturnStatement(String[] args)\r\nTestStatements.Anweisungen.SwitchStatement\r\n '-> .SwitchExample1()\r\n '-> .SwitchExample2()\r\n '-> .SwitchExample3()\r\n '-> .SwitchExample4()\r\n '-> .SwitchExample5()\r\n '-> .SwitchExample6()\r\n '-> .SwitchExample7()\r\nTestStatements.Anweisungen.DiceLibrary\r\nTestStatements.Anweisungen.Shape\r\nTestStatements.Anweisungen.Rectangle\r\nTestStatements.Anweisungen.Square\r\nTestStatements.Anweisungen.Circle\r\nTestStatements.Anweisungen.SwitchStatement2\r\n '-> .SwitchExample21()\r\nTestStatements.Anweisungen.YieldStatement\r\n '-> .DoYieldStatement(String[] args)\r\nTestStatements.Anweisungen.UsingStatement\r\n '-> .DoUsingStatement(String[] args)\r\n\r\nTestStatements.Threading.Tasks.AsyncBreakfast+d__1\r\nTestStatements.Threading.Tasks.AsyncBreakfast+d__2\r\nTestStatements.Threading.Tasks.AsyncBreakfast+d__3\r\nTestStatements.Threading.Tasks.AsyncBreakfast+d__4\r\nTestStatements.Threading.Tasks.AsyncBreakfast+d__5\r\nTestStatements.Threading.Tasks.AsyncBreakfast+d__6\r\nTestStatements.Threading.Tasks.AsyncBreakfast+d__7\r\nTestStatements.Threading.Tasks.TaskExample+<>c__DisplayClass3_0\r\nTestStatements.Threading.Tasks.TaskExample+<>c__DisplayClass3_1\r\nTestStatements.Threading.Tasks.TaskExample+<>c__DisplayClass5_0\r\nTestStatements.Threading.Tasks.TaskExample+<>c__DisplayClass5_1\r\nTestStatements.Threading.Tasks.TaskExample+d__5\r\nTestStatements.Threading.Tasks.TaskExample+<>c__DisplayClass6_0\r\nTestStatements.Threading.Tasks.TaskExample+<>c__DisplayClass7_0\r\nTestStatements.Reflection.ReflectionExample+NestedClass\r\nTestStatements.Reflection.ReflectionExample+INested\r\nTestStatements.Linq.LinqLookup+<>c\r\nTestStatements.CS_Concepts.TypeSystem+Coords\r\nTestStatements.CS_Concepts.TypeSystem+FileMode\r\nTestStatements.CS_Concepts.TypeSystem+MyClass\r\nTestStatements.CS_Concepts.TypeSystem+<>c__DisplayClass2_0\r\nTestStatements.CS_Concepts.TypeSystem+<>c\r\nTestStatements.CS_Concepts.TypeSystem+d__10\r\nTestStatements.DataTypes.EnumTest+Days\r\nTestStatements.DataTypes.EnumTest+BoilingPoints\r\nTestStatements.DataTypes.EnumTest+Colors\r\nTestStatements.DataTypes.Formating+<>c\r\nTestStatements.Anweisungen.SwitchStatement+Color\r\nTestStatements.Anweisungen.SwitchStatement+<>c\r\nTestStatements.Anweisungen.SwitchStatement+<>c__12`1\r\nTestStatements.Anweisungen.YieldStatement+d__0\r\n+__StaticArrayInitTypeSize=6\r\n+__StaticArrayInitTypeSize=20\r\n+__StaticArrayInitTypeSize=24\r\nTestStatements.Threading.Tasks.TaskExample+<>c__DisplayClass6_0+<b__0>d\r\nTestStatements.Threading.Tasks.TaskExample+<>c__DisplayClass7_0+<b__0>d\r\n\nExample.SampleMethod(42) executes.\r\nSampleMethod returned 84.\r\n\nAssembly entry point:\r\nVoid Main(System.String[])"
#if NET5_0_OR_GREATER
"Assembly Full Name:\r\nTestStatements_net, Version=1.0.8229.22007, Culture=neutral, PublicKeyToken=null\r\n\nName: TestStatements_net\r\nVersion: 1.0\r\n\nAssembly CodeBase:\r\nD:\\Projekte\\CSharp\\TestStatements\\TestStatementsTest\\bin\\Debug\\net6.0\\TestStatements_net.dll\r\nMicrosoft.CodeAnalysis.EmbeddedAttribute\r\nSystem.Runtime.CompilerServices.NullableAttribute\r\nSystem.Runtime.CompilerServices.NullableContextAttribute\r\nTestStatements.Program\r\nTestStatements.Resource1\r\nTestStatements.Threading.Tasks.AsyncBreakfast\r\n '-> .AsyncBreakfast_Main(String[] args)\r\nTestStatements.Threading.Tasks.Juice\r\nTestStatements.Threading.Tasks.Toast\r\nTestStatements.Threading.Tasks.Bacon\r\nTestStatements.Threading.Tasks.Egg\r\nTestStatements.Threading.Tasks.Coffee\r\nTestStatements.Threading.Tasks.TaskExample\r\n '-> .ExampleMain()\r\n '-> .ExampleMain1()\r\n '-> .ExampleMain2()\r\n '-> .ExampleMain3()\r\n '-> .ExampleMain4()\r\nTestStatements.SystemNS.System_Namespace\r\nTestStatements.SystemNS.Xml.XmlNS\r\n '-> .XmlTest1()\r\nTestStatements.Reflection.AssemblyExample\r\n '-> .ExampleMain()\r\nTestStatements.Reflection.S\r\nTestStatements.Reflection.ReflectionExample\r\n '-> .ExampleMain()\r\nTestStatements.Linq.Package\r\nTestStatements.Linq.LinqLookup\r\n '-> .LookupExample()\r\n '-> .ShowContains()\r\n '-> .ShowIEnumerable()\r\n '-> .ShowCount()\r\n '-> .ShowGrouping()\r\nTestStatements.Diagnostics.StopWatchExample\r\n '-> .ExampleMain()\r\n '-> .ExampleMain1()\r\n '-> .ExampleMain2()\r\n '-> .DisplayTimerProperties()\r\nTestStatements.DataTypes.EnumTest\r\n '-> .MainTest()\r\nTestStatements.DataTypes.Formating\r\n '-> .CombinedFormating()\r\n '-> .IndexKomponent()\r\n '-> .IndexKomponent2()\r\n '-> .IndentationKomponent()\r\n '-> .EscapeSequence()\r\n '-> .CodeExamples1()\r\n '-> .CodeExamples2()\r\n '-> .CodeExamples3()\r\n '-> .CodeExamples4()\r\nTestStatements.DataTypes.IntegratedTypes\r\nTestStatements.DataTypes.StringEx\r\n '-> .AllTests()\r\n '-> .StringEx1()\r\n '-> .StringEx2()\r\n '-> .StringEx3()\r\n '-> .StringEx4()\r\n '-> .StringEx5()\r\n '-> .UnicodeEx1()\r\n '-> .StringSurogarteEx1()\r\nTestStatements.CS_Concepts.TypeSystem\r\n '-> .All()\r\n '-> .UseOfTypes()\r\n '-> .DelareVariables()\r\n '-> .ValueTypes1()\r\n '-> .ValueTypes2()\r\n '-> .ValueTypes3()\r\n '-> .ValueTypes4()\r\nTestStatements.Constants.Constants\r\nTestStatements.Collection.Generic.ComparerExample\r\n '-> .ComparerExampleMain(String[] args)\r\n '-> .ShowSortWithLengthFirstComparer()\r\n '-> .ShowSortwithDefaultComparer()\r\n '-> .ShowLengthFirstComparer()\r\nTestStatements.Collection.Generic.BoxLengthFirst\r\nTestStatements.Collection.Generic.BoxComp\r\nTestStatements.Collection.Generic.Box\r\nTestStatements.Collection.Generic.DictionaryExample\r\n '-> .DictionaryExampleMain()\r\n '-> .TryAddExisting()\r\n '-> .ShowIndex1()\r\n '-> .ShowIndex2()\r\n '-> .ShowIndex3()\r\n '-> .ShowIndex4()\r\n '-> .ShowTryGetValue()\r\n '-> .ShowContainsKey()\r\n '-> .ShowValueCollection()\r\n '-> .ShowKeyCollection()\r\n '-> .ShowRemove()\r\nTestStatements.Collection.Generic.SortedListExample\r\n '-> .SortedListMain()\r\n '-> .ShowValues1()\r\n '-> .ShowValues2()\r\n '-> .ShowKeys1()\r\n '-> .ShowKeys2()\r\n '-> .ShowRemove()\r\n '-> .ShowForEach()\r\n '-> .ShowContainsKey()\r\n '-> .ShowTryGetValue()\r\n '-> .TestIndexr()\r\n '-> .TestAddExisting()\r\nTestStatements.Collection.Generic.TestHashSet\r\n '-> .ShowHashSet()\r\nTestStatements.Collection.Generic.Part\r\nTestStatements.Collection.Generic.TestList\r\n '-> .ListMain()\r\n '-> .ShowContains()\r\n '-> .ShowInsert()\r\n '-> .ShowIndex()\r\n '-> .ShowRemove1()\r\n '-> .ShowRemove2()\r\nTestStatements.Collection.Generic.DinosaurExample\r\n '-> .ListDinos()\r\n '-> .ShowCreateData()\r\n '-> .ShowContains()\r\n '-> .ShowInsert()\r\n '-> .ShowItemProperty()\r\n '-> .ShowRemove()\r\n '-> .ShowTrimExcess()\r\n '-> .ShowClear()\r\nTestStatements.ClassesAndObjects.Members\r\n '-> .set_OnChange(EventHandler value)\r\n '-> .aMethod()\r\n '-> .set_aProperty(Int32 value)\r\nTestStatements.Anweisungen.Checking\r\n '-> .CheckedUnchecked(String[] args)\r\nTestStatements.Anweisungen.ConditionalStatement\r\n '-> .DoIfStatement(String[] args)\r\n '-> .DoIfStatement2(String[] args)\r\n '-> .DoIfStatement3()\r\n '-> .DoSwitchStatement(String[] args)\r\n '-> .DoSwitchStatement1()\r\nTestStatements.Anweisungen.Declarations\r\n '-> .DoVarDeclarations(String[] args)\r\n '-> .DoConstantDeclarations(String[] args)\r\nTestStatements.Anweisungen.ExceptionHandling\r\n '-> .DoTryCatch(String[] args)\r\nTestStatements.Anweisungen.Expressions\r\n '-> .DoExpressions(String[] args)\r\nTestStatements.Anweisungen.Account\r\nTestStatements.Anweisungen.Locking\r\n '-> .DoLockTest(String[] args)\r\nTestStatements.Anweisungen.LoopStatements\r\n '-> .DoWhileStatement(String[] args)\r\n '-> .DoDoStatement(String[] args)\r\n '-> .DoDoStatement2(String[] args)\r\n '-> .DoDoStatement3(String[] args)\r\n '-> .DoDoDoStatement(String[] args)\r\n '-> .DoDoDoStatement2(String[] args)\r\n '-> .DoDoWhileNestedStatement2(String[] args)\r\n '-> .DoForStatement(String[] args)\r\n '-> .DoForStatement2(String[] args)\r\n '-> .DoForEachStatement(String[] args)\r\nTestStatements.Anweisungen.ProgramFlow\r\n '-> .DoBreakStatement(String[] args)\r\n '-> .DoContinueStatement(String[] args)\r\n '-> .DoGoToStatement(String[] args)\r\nTestStatements.Anweisungen.RandomExample\r\n '-> .ExampleMain1()\r\n '-> .ExampleMain2()\r\n '-> .ExampleMain3()\r\nTestStatements.Anweisungen.ReturnStatement\r\n '-> .DoReturnStatement(String[] args)\r\nTestStatements.Anweisungen.SwitchStatement\r\n '-> .SwitchExample1()\r\n '-> .SwitchExample2()\r\n '-> .SwitchExample3()\r\n '-> .SwitchExample4()\r\n '-> .SwitchExample5()\r\n '-> .SwitchExample6()\r\n '-> .SwitchExample7()\r\nTestStatements.Anweisungen.DiceLibrary\r\nTestStatements.Anweisungen.Shape\r\nTestStatements.Anweisungen.Rectangle\r\nTestStatements.Anweisungen.Square\r\nTestStatements.Anweisungen.Circle\r\nTestStatements.Anweisungen.SwitchStatement2\r\n '-> .SwitchExample21()\r\nTestStatements.Anweisungen.Vehicle\r\nTestStatements.Anweisungen.Car\r\nTestStatements.Anweisungen.Bus\r\nTestStatements.Anweisungen.Truck\r\nTestStatements.Anweisungen.Taxi\r\nTestStatements.Anweisungen.TollCalculator\r\nTestStatements.Anweisungen.SwitchStatement3\r\nTestStatements.Anweisungen.UsingStatement\r\n '-> .DoUsingStatement(String[] args)\r\nTestStatements.Anweisungen.YieldStatement\r\n '-> .DoYieldStatement(String[] args)\r\n\r\nTestStatements.Threading.Tasks.AsyncBreakfast+d__1\r\nTestStatements.Threading.Tasks.AsyncBreakfast+d__2\r\nTestStatements.Threading.Tasks.AsyncBreakfast+d__3\r\nTestStatements.Threading.Tasks.AsyncBreakfast+d__6\r\nTestStatements.Threading.Tasks.AsyncBreakfast+d__7\r\nTestStatements.Threading.Tasks.AsyncBreakfast+d__4\r\nTestStatements.Threading.Tasks.AsyncBreakfast+d__5\r\nTestStatements.Threading.Tasks.TaskExample+<>c__DisplayClass3_0\r\nTestStatements.Threading.Tasks.TaskExample+<>c__DisplayClass3_1\r\nTestStatements.Threading.Tasks.TaskExample+<>c__DisplayClass5_0\r\nTestStatements.Threading.Tasks.TaskExample+<>c__DisplayClass5_1\r\nTestStatements.Threading.Tasks.TaskExample+<>c__DisplayClass6_0\r\nTestStatements.Threading.Tasks.TaskExample+<>c__DisplayClass7_0\r\nTestStatements.Threading.Tasks.TaskExample+d__5\r\nTestStatements.Reflection.ReflectionExample+NestedClass\r\nTestStatements.Reflection.ReflectionExample+INested\r\nTestStatements.Linq.LinqLookup+<>c\r\nTestStatements.DataTypes.EnumTest+Days\r\nTestStatements.DataTypes.EnumTest+BoilingPoints\r\nTestStatements.DataTypes.EnumTest+Colors\r\nTestStatements.DataTypes.Formating+<>c\r\nTestStatements.CS_Concepts.TypeSystem+Coords\r\nTestStatements.CS_Concepts.TypeSystem+FileMode\r\nTestStatements.CS_Concepts.TypeSystem+MyClass\r\nTestStatements.CS_Concepts.TypeSystem+<>c\r\nTestStatements.CS_Concepts.TypeSystem+<>c__DisplayClass2_0\r\nTestStatements.CS_Concepts.TypeSystem+d__10\r\nTestStatements.Anweisungen.SwitchStatement+Color\r\nTestStatements.Anweisungen.SwitchStatement+<>c\r\nTestStatements.Anweisungen.SwitchStatement+<>c__12`1\r\nTestStatements.Anweisungen.YieldStatement+d__0\r\n+__StaticArrayInitTypeSize=6\r\n+__StaticArrayInitTypeSize=20\r\n+__StaticArrayInitTypeSize=24\r\nTestStatements.Threading.Tasks.TaskExample+<>c__DisplayClass6_0+<b__0>d\r\nTestStatements.Threading.Tasks.TaskExample+<>c__DisplayClass7_0+<b__0>d\r\n\nExample.SampleMethod(42) executes.\r\nSampleMethod returned 84.\r\n\nAssembly entry point:\r\nVoid Main(System.String[])";
//"Assembly Full Name:\r\nTestStatements, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null\r\n\nName: TestStatements\r\nVersion: 1.0\r\n\nAssembly CodeBase:\r\nfile:///C:/Projekte/CSharp/bin/Debug/TestStatements.EXE\r\nTestStatements.Program\r\nTestStatements.Threading.Tasks.AsyncBreakfast\r\n '-> .AsyncBreakfast_Main(String[] args)\r\nTestStatements.Threading.Tasks.Juice\r\nTestStatements.Threading.Tasks.Toast\r\nTestStatements.Threading.Tasks.Bacon\r\nTestStatements.Threading.Tasks.Egg\r\nTestStatements.Threading.Tasks.Coffee\r\nTestStatements.Threading.Tasks.TaskExample\r\n '-> .ExampleMain()\r\n '-> .ExampleMain1()\r\n '-> .ExampleMain2()\r\n '-> .ExampleMain3()\r\n '-> .ExampleMain4()\r\nTestStatements.SystemNS.System_Namespace\r\nTestStatements.Reflection.AssemblyExample\r\n '-> .ExampleMain()\r\nTestStatements.Reflection.S\r\nTestStatements.Reflection.ReflectionExample\r\n '-> .ExampleMain()\r\nTestStatements.Linq.Package\r\nTestStatements.Linq.LinqLookup\r\n '-> .LookupExample()\r\n '-> .ShowContains()\r\n '-> .ShowIEnumerable()\r\n '-> .ShowCount()\r\n '-> .ShowGrouping()\r\nTestStatements.Diagnostics.StopWatchExample\r\n '-> .ExampleMain()\r\n '-> .ExampleMain1()\r\n '-> .ExampleMain2()\r\n '-> .DisplayTimerProperties()\r\nTestStatements.CS_Concepts.TypeSystem\r\n '-> .All()\r\n '-> .UseOfTypes()\r\n '-> .DelareVariables()\r\n '-> .ValueTypes1()\r\n '-> .ValueTypes2()\r\n '-> .ValueTypes3()\r\n '-> .ValueTypes4()\r\nTestStatements.DataTypes.EnumTest\r\n '-> .MainTest()\r\nTestStatements.DataTypes.Formating\r\n '-> .CombinedFormating()\r\n '-> .IndexKomponent()\r\n '-> .IndexKomponent2()\r\n '-> .IndentationKomponent()\r\n '-> .EscapeSequence()\r\n '-> .CodeExamples1()\r\n '-> .CodeExamples2()\r\n '-> .CodeExamples3()\r\n '-> .CodeExamples4()\r\nTestStatements.DataTypes.IntegratedTypes\r\nTestStatements.DataTypes.StringEx\r\n '-> .AllTests()\r\n '-> .StringEx1()\r\n '-> .StringEx2()\r\n '-> .StringEx3()\r\n '-> .StringEx4()\r\n '-> .StringEx5()\r\n '-> .UnicodeEx1()\r\n '-> .StringSurogarteEx1()\r\nTestStatements.Constants.Constants\r\nTestStatements.Collection.Generic.ComparerExample\r\n '-> .ComparerExampleMain(String[] args)\r\n '-> .ShowSortWithLengthFirstComparer()\r\n '-> .ShowSortwithDefaultComparer()\r\n '-> .ShowLengthFirstComparer()\r\nTestStatements.Collection.Generic.BoxLengthFirst\r\nTestStatements.Collection.Generic.BoxComp\r\nTestStatements.Collection.Generic.Box\r\nTestStatements.Collection.Generic.DictionaryExample\r\n '-> .DictionaryExampleMain()\r\n '-> .TryAddExisting()\r\n '-> .ShowIndex1()\r\n '-> .ShowIndex2()\r\n '-> .ShowIndex3()\r\n '-> .ShowIndex4()\r\n '-> .ShowTryGetValue()\r\n '-> .ShowContainsKey()\r\n '-> .ShowValueCollection()\r\n '-> .ShowKeyCollection()\r\n '-> .ShowRemove()\r\nTestStatements.Collection.Generic.SortedListExample\r\n '-> .SortedListMain()\r\n '-> .ShowValues1()\r\n '-> .ShowValues2()\r\n '-> .ShowKeys1()\r\n '-> .ShowKeys2()\r\n '-> .ShowRemove()\r\n '-> .ShowForEach()\r\n '-> .ShowContainsKey()\r\n '-> .ShowTryGetValue()\r\n '-> .TestIndexr()\r\n '-> .TestAddExisting()\r\nTestStatements.Collection.Generic.TestHashSet\r\n '-> .ShowHashSet()\r\nTestStatements.Collection.Generic.Part\r\nTestStatements.Collection.Generic.TestList\r\n '-> .ListMain()\r\n '-> .ShowContains()\r\n '-> .ShowInsert()\r\n '-> .ShowIndex()\r\n '-> .ShowRemove1()\r\n '-> .ShowRemove2()\r\nTestStatements.Collection.Generic.DinosaurExample\r\n '-> .ListDinos()\r\n '-> .ShowCreateData()\r\n '-> .ShowContains()\r\n '-> .ShowInsert()\r\n '-> .ShowItemProperty()\r\n '-> .ShowRemove()\r\n '-> .ShowTrimExcess()\r\n '-> .ShowClear()\r\nTestStatements.ClassesAndObjects.Members\r\n '-> .set_OnChange(EventHandler value)\r\n '-> .aMethod()\r\n '-> .set_aProperty(Int32 value)\r\nTestStatements.Anweisungen.Checking\r\n '-> .CheckedUnchecked(String[] args)\r\nTestStatements.Anweisungen.ExceptionHandling\r\n '-> .DoTryCatch(String[] args)\r\nTestStatements.Anweisungen.Account\r\nTestStatements.Anweisungen.Locking\r\n '-> .DoLockTest(String[] args)\r\nTestStatements.Anweisungen.ProgramFlow\r\n '-> .DoBreakStatement(String[] args)\r\n '-> .DoContinueStatement(String[] args)\r\n '-> .DoGoToStatement(String[] args)\r\nTestStatements.Anweisungen.Expressions\r\n '-> .DoExpressions(String[] args)\r\nTestStatements.Anweisungen.Declarations\r\n '-> .DoVarDeclarations(String[] args)\r\n '-> .DoConstantDeclarations(String[] args)\r\nTestStatements.Anweisungen.ConditionalStatement\r\n '-> .DoIfStatement(String[] args)\r\n '-> .DoIfStatement2(String[] args)\r\n '-> .DoIfStatement3()\r\n '-> .DoSwitchStatement(String[] args)\r\n '-> .DoSwitchStatement1()\r\nTestStatements.Anweisungen.LoopStatements\r\n '-> .DoWhileStatement(String[] args)\r\n '-> .DoDoStatement(String[] args)\r\n '-> .DoDoStatement2(String[] args)\r\n '-> .DoDoStatement3(String[] args)\r\n '-> .DoDoDoStatement(String[] args)\r\n '-> .DoDoDoStatement2(String[] args)\r\n '-> .DoDoWhileNestedStatement2(String[] args)\r\n '-> .DoForStatement(String[] args)\r\n '-> .DoForStatement2(String[] args)\r\n '-> .DoForEachStatement(String[] args)\r\nTestStatements.Anweisungen.RandomExample\r\n '-> .ExampleMain1()\r\n '-> .ExampleMain2()\r\n '-> .ExampleMain3()\r\nTestStatements.Anweisungen.ReturnStatement\r\n '-> .DoReturnStatement(String[] args)\r\nTestStatements.Anweisungen.SwitchStatement\r\n '-> .SwitchExample1()\r\n '-> .SwitchExample2()\r\n '-> .SwitchExample3()\r\n '-> .SwitchExample4()\r\n '-> .SwitchExample5()\r\n '-> .SwitchExample6()\r\n '-> .SwitchExample7()\r\nTestStatements.Anweisungen.DiceLibrary\r\nTestStatements.Anweisungen.Shape\r\nTestStatements.Anweisungen.Rectangle\r\nTestStatements.Anweisungen.Square\r\nTestStatements.Anweisungen.Circle\r\nTestStatements.Anweisungen.SwitchStatement2\r\n '-> .SwitchExample21()\r\nTestStatements.Anweisungen.YieldStatement\r\n '-> .DoYieldStatement(String[] args)\r\nTestStatements.Anweisungen.UsingStatement\r\n '-> .DoUsingStatement(String[] args)\r\n\r\nTestStatements.Threading.Tasks.AsyncBreakfast+d__1\r\nTestStatements.Threading.Tasks.AsyncBreakfast+d__2\r\nTestStatements.Threading.Tasks.AsyncBreakfast+d__3\r\nTestStatements.Threading.Tasks.AsyncBreakfast+d__4\r\nTestStatements.Threading.Tasks.AsyncBreakfast+d__5\r\nTestStatements.Threading.Tasks.AsyncBreakfast+d__6\r\nTestStatements.Threading.Tasks.AsyncBreakfast+d__7\r\nTestStatements.Threading.Tasks.TaskExample+<>c__DisplayClass3_0\r\nTestStatements.Threading.Tasks.TaskExample+<>c__DisplayClass3_1\r\nTestStatements.Threading.Tasks.TaskExample+<>c__DisplayClass5_0\r\nTestStatements.Threading.Tasks.TaskExample+<>c__DisplayClass5_1\r\nTestStatements.Threading.Tasks.TaskExample+d__5\r\nTestStatements.Threading.Tasks.TaskExample+<>c__DisplayClass6_0\r\nTestStatements.Threading.Tasks.TaskExample+<>c__DisplayClass7_0\r\nTestStatements.Reflection.ReflectionExample+NestedClass\r\nTestStatements.Reflection.ReflectionExample+INested\r\nTestStatements.Linq.LinqLookup+<>c\r\nTestStatements.CS_Concepts.TypeSystem+Coords\r\nTestStatements.CS_Concepts.TypeSystem+FileMode\r\nTestStatements.CS_Concepts.TypeSystem+MyClass\r\nTestStatements.CS_Concepts.TypeSystem+<>c__DisplayClass2_0\r\nTestStatements.CS_Concepts.TypeSystem+<>c\r\nTestStatements.CS_Concepts.TypeSystem+d__10\r\nTestStatements.DataTypes.EnumTest+Days\r\nTestStatements.DataTypes.EnumTest+BoilingPoints\r\nTestStatements.DataTypes.EnumTest+Colors\r\nTestStatements.DataTypes.Formating+<>c\r\nTestStatements.Anweisungen.SwitchStatement+Color\r\nTestStatements.Anweisungen.SwitchStatement+<>c\r\nTestStatements.Anweisungen.SwitchStatement+<>c__12`1\r\nTestStatements.Anweisungen.YieldStatement+d__0\r\n+__StaticArrayInitTypeSize=6\r\n+__StaticArrayInitTypeSize=20\r\n+__StaticArrayInitTypeSize=24\r\nTestStatements.Threading.Tasks.TaskExample+<>c__DisplayClass6_0+<b__0>d\r\nTestStatements.Threading.Tasks.TaskExample+<>c__DisplayClass7_0+<b__0>d\r\n\nExample.SampleMethod(42) executes.\r\nSampleMethod returned 84.\r\n\nAssembly entry point:\r\nVoid Main(System.String[])";
#else
- //"Assembly Full Name:\r\nTestStatements, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null\r\n\nName: TestStatements\r\nVersion: 1.0\r\n\nAssembly CodeBase:\r\nfile:///D:/Projekte/CSharp/bin/Debug/TestStatements.EXE\r\nTestStatements.Program\r\nTestStatements.Resource1\r\nTestStatements.Threading.Tasks.AsyncBreakfast\r\n '-> .AsyncBreakfast_Main(String[] args)\r\nTestStatements.Threading.Tasks.Juice\r\nTestStatements.Threading.Tasks.Toast\r\nTestStatements.Threading.Tasks.Bacon\r\nTestStatements.Threading.Tasks.Egg\r\nTestStatements.Threading.Tasks.Coffee\r\nTestStatements.Threading.Tasks.TaskExample\r\n '-> .ExampleMain()\r\n '-> .ExampleMain1()\r\n '-> .ExampleMain2()\r\n '-> .ExampleMain3()\r\n '-> .ExampleMain4()\r\nTestStatements.SystemNS.System_Namespace\r\nTestStatements.SystemNS.Xml.XmlNS\r\n '-> .XmlTest1()\r\nTestStatements.Reflection.AssemblyExample\r\n '-> .ExampleMain()\r\nTestStatements.Reflection.S\r\nTestStatements.Reflection.ReflectionExample\r\n '-> .ExampleMain()\r\nTestStatements.Linq.Package\r\nTestStatements.Linq.LinqLookup\r\n '-> .LookupExample()\r\n '-> .ShowContains()\r\n '-> .ShowIEnumerable()\r\n '-> .ShowCount()\r\n '-> .ShowGrouping()\r\nTestStatements.Diagnostics.StopWatchExample\r\n '-> .ExampleMain()\r\n '-> .ExampleMain1()\r\n '-> .ExampleMain2()\r\n '-> .DisplayTimerProperties()\r\nTestStatements.CS_Concepts.TypeSystem\r\n '-> .All()\r\n '-> .UseOfTypes()\r\n '-> .DelareVariables()\r\n '-> .ValueTypes1()\r\n '-> .ValueTypes2()\r\n '-> .ValueTypes3()\r\n '-> .ValueTypes4()\r\nTestStatements.DataTypes.EnumTest\r\n '-> .MainTest()\r\nTestStatements.DataTypes.Formating\r\n '-> .CombinedFormating()\r\n '-> .IndexKomponent()\r\n '-> .IndexKomponent2()\r\n '-> .IndentationKomponent()\r\n '-> .EscapeSequence()\r\n '-> .CodeExamples1()\r\n '-> .CodeExamples2()\r\n '-> .CodeExamples3()\r\n '-> .CodeExamples4()\r\nTestStatements.DataTypes.IntegratedTypes\r\nTestStatements.DataTypes.StringEx\r\n '-> .AllTests()\r\n '-> .StringEx1()\r\n '-> .StringEx2()\r\n '-> .StringEx3()\r\n '-> .StringEx4()\r\n '-> .StringEx5()\r\n '-> .UnicodeEx1()\r\n '-> .StringSurogarteEx1()\r\nTestStatements.Constants.Constants\r\nTestStatements.Collection.Generic.ComparerExample\r\n '-> .ComparerExampleMain(String[] args)\r\n '-> .ShowSortWithLengthFirstComparer()\r\n '-> .ShowSortwithDefaultComparer()\r\n '-> .ShowLengthFirstComparer()\r\nTestStatements.Collection.Generic.BoxLengthFirst\r\nTestStatements.Collection.Generic.BoxComp\r\nTestStatements.Collection.Generic.Box\r\nTestStatements.Collection.Generic.DictionaryExample\r\n '-> .DictionaryExampleMain()\r\n '-> .TryAddExisting()\r\n '-> .ShowIndex1()\r\n '-> .ShowIndex2()\r\n '-> .ShowIndex3()\r\n '-> .ShowIndex4()\r\n '-> .ShowTryGetValue()\r\n '-> .ShowContainsKey()\r\n '-> .ShowValueCollection()\r\n '-> .ShowKeyCollection()\r\n '-> .ShowRemove()\r\nTestStatements.Collection.Generic.SortedListExample\r\n '-> .SortedListMain()\r\n '-> .ShowValues1()\r\n '-> .ShowValues2()\r\n '-> .ShowKeys1()\r\n '-> .ShowKeys2()\r\n '-> .ShowRemove()\r\n '-> .ShowForEach()\r\n '-> .ShowContainsKey()\r\n '-> .ShowTryGetValue()\r\n '-> .TestIndexr()\r\n '-> .TestAddExisting()\r\nTestStatements.Collection.Generic.TestHashSet\r\n '-> .ShowHashSet()\r\nTestStatements.Collection.Generic.Part\r\nTestStatements.Collection.Generic.TestList\r\n '-> .ListMain()\r\n '-> .ShowContains()\r\n '-> .ShowInsert()\r\n '-> .ShowIndex()\r\n '-> .ShowRemove1()\r\n '-> .ShowRemove2()\r\nTestStatements.Collection.Generic.DinosaurExample\r\n '-> .ListDinos()\r\n '-> .ShowCreateData()\r\n '-> .ShowContains()\r\n '-> .ShowInsert()\r\n '-> .ShowItemProperty()\r\n '-> .ShowRemove()\r\n '-> .ShowTrimExcess()\r\n '-> .ShowClear()\r\nTestStatements.ClassesAndObjects.Members\r\n '-> .set_OnChange(EventHandler value)\r\n '-> .aMethod()\r\n '-> .set_aProperty(Int32 value)\r\nTestStatements.Anweisungen.Checking\r\n '-> .CheckedUnchecked(String[] args)\r\nTestStatements.Anweisungen.ExceptionHandling\r\n '-> .DoTryCatch(String[] args)\r\nTestStatements.Anweisungen.Account\r\nTestStatements.Anweisungen.Locking\r\n '-> .DoLockTest(String[] args)\r\nTestStatements.Anweisungen.ProgramFlow\r\n '-> .DoBreakStatement(String[] args)\r\n '-> .DoContinueStatement(String[] args)\r\n '-> .DoGoToStatement(String[] args)\r\nTestStatements.Anweisungen.Expressions\r\n '-> .DoExpressions(String[] args)\r\nTestStatements.Anweisungen.Declarations\r\n '-> .DoVarDeclarations(String[] args)\r\n '-> .DoConstantDeclarations(String[] args)\r\nTestStatements.Anweisungen.ConditionalStatement\r\n '-> .DoIfStatement(String[] args)\r\n '-> .DoIfStatement2(String[] args)\r\n '-> .DoIfStatement3()\r\n '-> .DoSwitchStatement(String[] args)\r\n '-> .DoSwitchStatement1()\r\nTestStatements.Anweisungen.LoopStatements\r\n '-> .DoWhileStatement(String[] args)\r\n '-> .DoDoStatement(String[] args)\r\n '-> .DoDoStatement2(String[] args)\r\n '-> .DoDoStatement3(String[] args)\r\n '-> .DoDoDoStatement(String[] args)\r\n '-> .DoDoDoStatement2(String[] args)\r\n '-> .DoDoWhileNestedStatement2(String[] args)\r\n '-> .DoForStatement(String[] args)\r\n '-> .DoForStatement2(String[] args)\r\n '-> .DoForEachStatement(String[] args)\r\nTestStatements.Anweisungen.RandomExample\r\n '-> .ExampleMain1()\r\n '-> .ExampleMain2()\r\n '-> .ExampleMain3()\r\nTestStatements.Anweisungen.ReturnStatement\r\n '-> .DoReturnStatement(String[] args)\r\nTestStatements.Anweisungen.SwitchStatement\r\n '-> .SwitchExample1()\r\n '-> .SwitchExample2()\r\n '-> .SwitchExample3()\r\n '-> .SwitchExample4()\r\n '-> .SwitchExample5()\r\n '-> .SwitchExample6()\r\n '-> .SwitchExample7()\r\nTestStatements.Anweisungen.DiceLibrary\r\nTestStatements.Anweisungen.Shape\r\nTestStatements.Anweisungen.Rectangle\r\nTestStatements.Anweisungen.Square\r\nTestStatements.Anweisungen.Circle\r\nTestStatements.Anweisungen.SwitchStatement2\r\n '-> .SwitchExample21()\r\nTestStatements.Anweisungen.YieldStatement\r\n '-> .DoYieldStatement(String[] args)\r\nTestStatements.Anweisungen.UsingStatement\r\n '-> .DoUsingStatement(String[] args)\r\n\r\nTestStatements.Threading.Tasks.AsyncBreakfast+d__1\r\nTestStatements.Threading.Tasks.AsyncBreakfast+d__2\r\nTestStatements.Threading.Tasks.AsyncBreakfast+d__3\r\nTestStatements.Threading.Tasks.AsyncBreakfast+d__6\r\nTestStatements.Threading.Tasks.AsyncBreakfast+d__7\r\nTestStatements.Threading.Tasks.AsyncBreakfast+d__4\r\nTestStatements.Threading.Tasks.AsyncBreakfast+d__5\r\nTestStatements.Threading.Tasks.TaskExample+<>c__DisplayClass3_0\r\nTestStatements.Threading.Tasks.TaskExample+<>c__DisplayClass3_1\r\nTestStatements.Threading.Tasks.TaskExample+<>c__DisplayClass5_0\r\nTestStatements.Threading.Tasks.TaskExample+<>c__DisplayClass5_1\r\nTestStatements.Threading.Tasks.TaskExample+<>c__DisplayClass6_0\r\nTestStatements.Threading.Tasks.TaskExample+<>c__DisplayClass7_0\r\nTestStatements.Threading.Tasks.TaskExample+d__5\r\nTestStatements.Reflection.ReflectionExample+NestedClass\r\nTestStatements.Reflection.ReflectionExample+INested\r\nTestStatements.Linq.LinqLookup+<>c\r\nTestStatements.CS_Concepts.TypeSystem+Coords\r\nTestStatements.CS_Concepts.TypeSystem+FileMode\r\nTestStatements.CS_Concepts.TypeSystem+MyClass\r\nTestStatements.CS_Concepts.TypeSystem+<>c\r\nTestStatements.CS_Concepts.TypeSystem+<>c__DisplayClass2_0\r\nTestStatements.CS_Concepts.TypeSystem+d__10\r\nTestStatements.DataTypes.EnumTest+Days\r\nTestStatements.DataTypes.EnumTest+BoilingPoints\r\nTestStatements.DataTypes.EnumTest+Colors\r\nTestStatements.DataTypes.Formating+<>c\r\nTestStatements.Anweisungen.SwitchStatement+Color\r\nTestStatements.Anweisungen.SwitchStatement+<>c\r\nTestStatements.Anweisungen.SwitchStatement+<>c__12`1\r\nTestStatements.Anweisungen.YieldStatement+d__0\r\n+__StaticArrayInitTypeSize=6\r\n+__StaticArrayInitTypeSize=20\r\n+__StaticArrayInitTypeSize=24\r\nTestStatements.Threading.Tasks.TaskExample+<>c__DisplayClass6_0+<b__0>d\r\nTestStatements.Threading.Tasks.TaskExample+<>c__DisplayClass7_0+<b__0>d\r\n\nExample.SampleMethod(42) executes.\r\nSampleMethod returned 84.\r\n\nAssembly entry point:\r\nVoid Main(System.String[])";
- //"Assembly Full Name:\r\nTestStatements, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null\r\n\nName: TestStatements\r\nVersion: 1.0\r\n\nAssembly CodeBase:\r\nfile:///C:/Projekte/CSharp/bin/Debug/TestStatements.EXE\r\nTestStatements.Program\r\nTestStatements.Threading.Tasks.AsyncBreakfast\r\n '-> .AsyncBreakfast_Main(String[] args)\r\nTestStatements.Threading.Tasks.Juice\r\nTestStatements.Threading.Tasks.Toast\r\nTestStatements.Threading.Tasks.Bacon\r\nTestStatements.Threading.Tasks.Egg\r\nTestStatements.Threading.Tasks.Coffee\r\nTestStatements.Threading.Tasks.TaskExample\r\n '-> .ExampleMain()\r\n '-> .ExampleMain1()\r\n '-> .ExampleMain2()\r\n '-> .ExampleMain3()\r\n '-> .ExampleMain4()\r\nTestStatements.SystemNS.System_Namespace\r\nTestStatements.Reflection.AssemblyExample\r\n '-> .ExampleMain()\r\nTestStatements.Reflection.S\r\nTestStatements.Reflection.ReflectionExample\r\n '-> .ExampleMain()\r\nTestStatements.Linq.Package\r\nTestStatements.Linq.LinqLookup\r\n '-> .LookupExample()\r\n '-> .ShowContains()\r\n '-> .ShowIEnumerable()\r\n '-> .ShowCount()\r\n '-> .ShowGrouping()\r\nTestStatements.Diagnostics.StopWatchExample\r\n '-> .ExampleMain()\r\n '-> .ExampleMain1()\r\n '-> .ExampleMain2()\r\n '-> .DisplayTimerProperties()\r\nTestStatements.CS_Concepts.TypeSystem\r\n '-> .All()\r\n '-> .UseOfTypes()\r\n '-> .DelareVariables()\r\n '-> .ValueTypes1()\r\n '-> .ValueTypes2()\r\n '-> .ValueTypes3()\r\n '-> .ValueTypes4()\r\nTestStatements.DataTypes.EnumTest\r\n '-> .MainTest()\r\nTestStatements.DataTypes.Formating\r\n '-> .CombinedFormating()\r\n '-> .IndexKomponent()\r\n '-> .IndexKomponent2()\r\n '-> .IndentationKomponent()\r\n '-> .EscapeSequence()\r\n '-> .CodeExamples1()\r\n '-> .CodeExamples2()\r\n '-> .CodeExamples3()\r\n '-> .CodeExamples4()\r\nTestStatements.DataTypes.IntegratedTypes\r\nTestStatements.DataTypes.StringEx\r\n '-> .AllTests()\r\n '-> .StringEx1()\r\n '-> .StringEx2()\r\n '-> .StringEx3()\r\n '-> .StringEx4()\r\n '-> .StringEx5()\r\n '-> .UnicodeEx1()\r\n '-> .StringSurogarteEx1()\r\nTestStatements.Constants.Constants\r\nTestStatements.Collection.Generic.ComparerExample\r\n '-> .ComparerExampleMain(String[] args)\r\n '-> .ShowSortWithLengthFirstComparer()\r\n '-> .ShowSortwithDefaultComparer()\r\n '-> .ShowLengthFirstComparer()\r\nTestStatements.Collection.Generic.BoxLengthFirst\r\nTestStatements.Collection.Generic.BoxComp\r\nTestStatements.Collection.Generic.Box\r\nTestStatements.Collection.Generic.DictionaryExample\r\n '-> .DictionaryExampleMain()\r\n '-> .TryAddExisting()\r\n '-> .ShowIndex1()\r\n '-> .ShowIndex2()\r\n '-> .ShowIndex3()\r\n '-> .ShowIndex4()\r\n '-> .ShowTryGetValue()\r\n '-> .ShowContainsKey()\r\n '-> .ShowValueCollection()\r\n '-> .ShowKeyCollection()\r\n '-> .ShowRemove()\r\nTestStatements.Collection.Generic.SortedListExample\r\n '-> .SortedListMain()\r\n '-> .ShowValues1()\r\n '-> .ShowValues2()\r\n '-> .ShowKeys1()\r\n '-> .ShowKeys2()\r\n '-> .ShowRemove()\r\n '-> .ShowForEach()\r\n '-> .ShowContainsKey()\r\n '-> .ShowTryGetValue()\r\n '-> .TestIndexr()\r\n '-> .TestAddExisting()\r\nTestStatements.Collection.Generic.TestHashSet\r\n '-> .ShowHashSet()\r\nTestStatements.Collection.Generic.Part\r\nTestStatements.Collection.Generic.TestList\r\n '-> .ListMain()\r\n '-> .ShowContains()\r\n '-> .ShowInsert()\r\n '-> .ShowIndex()\r\n '-> .ShowRemove1()\r\n '-> .ShowRemove2()\r\nTestStatements.Collection.Generic.DinosaurExample\r\n '-> .ListDinos()\r\n '-> .ShowCreateData()\r\n '-> .ShowContains()\r\n '-> .ShowInsert()\r\n '-> .ShowItemProperty()\r\n '-> .ShowRemove()\r\n '-> .ShowTrimExcess()\r\n '-> .ShowClear()\r\nTestStatements.ClassesAndObjects.Members\r\n '-> .set_OnChange(EventHandler value)\r\n '-> .aMethod()\r\n '-> .set_aProperty(Int32 value)\r\nTestStatements.Anweisungen.Checking\r\n '-> .CheckedUnchecked(String[] args)\r\nTestStatements.Anweisungen.ExceptionHandling\r\n '-> .DoTryCatch(String[] args)\r\nTestStatements.Anweisungen.Account\r\nTestStatements.Anweisungen.Locking\r\n '-> .DoLockTest(String[] args)\r\nTestStatements.Anweisungen.ProgramFlow\r\n '-> .DoBreakStatement(String[] args)\r\n '-> .DoContinueStatement(String[] args)\r\n '-> .DoGoToStatement(String[] args)\r\nTestStatements.Anweisungen.Expressions\r\n '-> .DoExpressions(String[] args)\r\nTestStatements.Anweisungen.Declarations\r\n '-> .DoVarDeclarations(String[] args)\r\n '-> .DoConstantDeclarations(String[] args)\r\nTestStatements.Anweisungen.ConditionalStatement\r\n '-> .DoIfStatement(String[] args)\r\n '-> .DoIfStatement2(String[] args)\r\n '-> .DoIfStatement3()\r\n '-> .DoSwitchStatement(String[] args)\r\n '-> .DoSwitchStatement1()\r\nTestStatements.Anweisungen.LoopStatements\r\n '-> .DoWhileStatement(String[] args)\r\n '-> .DoDoStatement(String[] args)\r\n '-> .DoDoStatement2(String[] args)\r\n '-> .DoDoStatement3(String[] args)\r\n '-> .DoDoDoStatement(String[] args)\r\n '-> .DoDoDoStatement2(String[] args)\r\n '-> .DoDoWhileNestedStatement2(String[] args)\r\n '-> .DoForStatement(String[] args)\r\n '-> .DoForStatement2(String[] args)\r\n '-> .DoForEachStatement(String[] args)\r\nTestStatements.Anweisungen.RandomExample\r\n '-> .ExampleMain1()\r\n '-> .ExampleMain2()\r\n '-> .ExampleMain3()\r\nTestStatements.Anweisungen.ReturnStatement\r\n '-> .DoReturnStatement(String[] args)\r\nTestStatements.Anweisungen.SwitchStatement\r\n '-> .SwitchExample1()\r\n '-> .SwitchExample2()\r\n '-> .SwitchExample3()\r\n '-> .SwitchExample4()\r\n '-> .SwitchExample5()\r\n '-> .SwitchExample6()\r\n '-> .SwitchExample7()\r\nTestStatements.Anweisungen.DiceLibrary\r\nTestStatements.Anweisungen.Shape\r\nTestStatements.Anweisungen.Rectangle\r\nTestStatements.Anweisungen.Square\r\nTestStatements.Anweisungen.Circle\r\nTestStatements.Anweisungen.SwitchStatement2\r\n '-> .SwitchExample21()\r\nTestStatements.Anweisungen.YieldStatement\r\n '-> .DoYieldStatement(String[] args)\r\nTestStatements.Anweisungen.UsingStatement\r\n '-> .DoUsingStatement(String[] args)\r\n\r\nTestStatements.Threading.Tasks.AsyncBreakfast+d__1\r\nTestStatements.Threading.Tasks.AsyncBreakfast+d__2\r\nTestStatements.Threading.Tasks.AsyncBreakfast+d__3\r\nTestStatements.Threading.Tasks.AsyncBreakfast+d__4\r\nTestStatements.Threading.Tasks.AsyncBreakfast+d__5\r\nTestStatements.Threading.Tasks.AsyncBreakfast+d__6\r\nTestStatements.Threading.Tasks.AsyncBreakfast+d__7\r\nTestStatements.Threading.Tasks.TaskExample+<>c__DisplayClass3_0\r\nTestStatements.Threading.Tasks.TaskExample+<>c__DisplayClass3_1\r\nTestStatements.Threading.Tasks.TaskExample+<>c__DisplayClass5_0\r\nTestStatements.Threading.Tasks.TaskExample+<>c__DisplayClass5_1\r\nTestStatements.Threading.Tasks.TaskExample+d__5\r\nTestStatements.Threading.Tasks.TaskExample+<>c__DisplayClass6_0\r\nTestStatements.Threading.Tasks.TaskExample+<>c__DisplayClass7_0\r\nTestStatements.Reflection.ReflectionExample+NestedClass\r\nTestStatements.Reflection.ReflectionExample+INested\r\nTestStatements.Linq.LinqLookup+<>c\r\nTestStatements.CS_Concepts.TypeSystem+Coords\r\nTestStatements.CS_Concepts.TypeSystem+FileMode\r\nTestStatements.CS_Concepts.TypeSystem+MyClass\r\nTestStatements.CS_Concepts.TypeSystem+<>c__DisplayClass2_0\r\nTestStatements.CS_Concepts.TypeSystem+<>c\r\nTestStatements.CS_Concepts.TypeSystem+d__10\r\nTestStatements.DataTypes.EnumTest+Days\r\nTestStatements.DataTypes.EnumTest+BoilingPoints\r\nTestStatements.DataTypes.EnumTest+Colors\r\nTestStatements.DataTypes.Formating+<>c\r\nTestStatements.Anweisungen.SwitchStatement+Color\r\nTestStatements.Anweisungen.SwitchStatement+<>c\r\nTestStatements.Anweisungen.SwitchStatement+<>c__12`1\r\nTestStatements.Anweisungen.YieldStatement+d__0\r\n+__StaticArrayInitTypeSize=6\r\n+__StaticArrayInitTypeSize=20\r\n+__StaticArrayInitTypeSize=24\r\nTestStatements.Threading.Tasks.TaskExample+<>c__DisplayClass6_0+<b__0>d\r\nTestStatements.Threading.Tasks.TaskExample+<>c__DisplayClass7_0+<b__0>d\r\n\nExample.SampleMethod(42) executes.\r\nSampleMethod returned 84.\r\n\nAssembly entry point:\r\nVoid Main(System.String[])";
- //"Assembly Full Name:\r\nTestStatements, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null\r\n\nName: TestStatements\r\nVersion: 1.0\r\n\nAssembly CodeBase:\r\nfile:///C:/Projekte/CSharp/bin/TestStatementsTest/Debug/TestStatements.EXE\r\nTestStatements.Program\r\nTestStatements.Resource1\r\nTestStatements.Threading.Tasks.AsyncBreakfast\r\n '-> .AsyncBreakfast_Main(String[] args)\r\nTestStatements.Threading.Tasks.Juice\r\nTestStatements.Threading.Tasks.Toast\r\nTestStatements.Threading.Tasks.Bacon\r\nTestStatements.Threading.Tasks.Egg\r\nTestStatements.Threading.Tasks.Coffee\r\nTestStatements.Threading.Tasks.TaskExample\r\n '-> .ExampleMain()\r\n '-> .ExampleMain1()\r\n '-> .ExampleMain2()\r\n '-> .ExampleMain3()\r\n '-> .ExampleMain4()\r\nTestStatements.SystemNS.System_Namespace\r\nTestStatements.SystemNS.Xml.XmlNS\r\n '-> .XmlTest1()\r\nTestStatements.Reflection.AssemblyExample\r\n '-> .ExampleMain()\r\nTestStatements.Reflection.S\r\nTestStatements.Reflection.ReflectionExample\r\n '-> .ExampleMain()\r\nTestStatements.Linq.Package\r\nTestStatements.Linq.LinqLookup\r\n '-> .LookupExample()\r\n '-> .ShowContains()\r\n '-> .ShowIEnumerable()\r\n '-> .ShowCount()\r\n '-> .ShowGrouping()\r\nTestStatements.Diagnostics.StopWatchExample\r\n '-> .ExampleMain()\r\n '-> .ExampleMain1()\r\n '-> .ExampleMain2()\r\n '-> .DisplayTimerProperties()\r\nTestStatements.CS_Concepts.TypeSystem\r\n '-> .All()\r\n '-> .UseOfTypes()\r\n '-> .DelareVariables()\r\n '-> .ValueTypes1()\r\n '-> .ValueTypes2()\r\n '-> .ValueTypes3()\r\n '-> .ValueTypes4()\r\nTestStatements.DataTypes.EnumTest\r\n '-> .MainTest()\r\nTestStatements.DataTypes.Formating\r\n '-> .CombinedFormating()\r\n '-> .IndexKomponent()\r\n '-> .IndexKomponent2()\r\n '-> .IndentationKomponent()\r\n '-> .EscapeSequence()\r\n '-> .CodeExamples1()\r\n '-> .CodeExamples2()\r\n '-> .CodeExamples3()\r\n '-> .CodeExamples4()\r\nTestStatements.DataTypes.IntegratedTypes\r\nTestStatements.DataTypes.StringEx\r\n '-> .AllTests()\r\n '-> .StringEx1()\r\n '-> .StringEx2()\r\n '-> .StringEx3()\r\n '-> .StringEx4()\r\n '-> .StringEx5()\r\n '-> .UnicodeEx1()\r\n '-> .StringSurogarteEx1()\r\nTestStatements.Constants.Constants\r\nTestStatements.Collection.Generic.ComparerExample\r\n '-> .ComparerExampleMain(String[] args)\r\n '-> .ShowSortWithLengthFirstComparer()\r\n '-> .ShowSortwithDefaultComparer()\r\n '-> .ShowLengthFirstComparer()\r\nTestStatements.Collection.Generic.BoxLengthFirst\r\nTestStatements.Collection.Generic.BoxComp\r\nTestStatements.Collection.Generic.Box\r\nTestStatements.Collection.Generic.DictionaryExample\r\n '-> .DictionaryExampleMain()\r\n '-> .TryAddExisting()\r\n '-> .ShowIndex1()\r\n '-> .ShowIndex2()\r\n '-> .ShowIndex3()\r\n '-> .ShowIndex4()\r\n '-> .ShowTryGetValue()\r\n '-> .ShowContainsKey()\r\n '-> .ShowValueCollection()\r\n '-> .ShowKeyCollection()\r\n '-> .ShowRemove()\r\nTestStatements.Collection.Generic.SortedListExample\r\n '-> .SortedListMain()\r\n '-> .ShowValues1()\r\n '-> .ShowValues2()\r\n '-> .ShowKeys1()\r\n '-> .ShowKeys2()\r\n '-> .ShowRemove()\r\n '-> .ShowForEach()\r\n '-> .ShowContainsKey()\r\n '-> .ShowTryGetValue()\r\n '-> .TestIndexr()\r\n '-> .TestAddExisting()\r\nTestStatements.Collection.Generic.TestHashSet\r\n '-> .ShowHashSet()\r\nTestStatements.Collection.Generic.Part\r\nTestStatements.Collection.Generic.TestList\r\n '-> .ListMain()\r\n '-> .ShowContains()\r\n '-> .ShowInsert()\r\n '-> .ShowIndex()\r\n '-> .ShowRemove1()\r\n '-> .ShowRemove2()\r\nTestStatements.Collection.Generic.DinosaurExample\r\n '-> .ListDinos()\r\n '-> .ShowCreateData()\r\n '-> .ShowContains()\r\n '-> .ShowInsert()\r\n '-> .ShowItemProperty()\r\n '-> .ShowRemove()\r\n '-> .ShowTrimExcess()\r\n '-> .ShowClear()\r\nTestStatements.ClassesAndObjects.IInterface1\r\nTestStatements.ClassesAndObjects.IInterface2\r\nTestStatements.ClassesAndObjects.IInterface3\r\nTestStatements.ClassesAndObjects.Class1\r\nTestStatements.ClassesAndObjects.Class2\r\nTestStatements.ClassesAndObjects.Class3\r\nTestStatements.ClassesAndObjects.Class4\r\nTestStatements.ClassesAndObjects.Class5\r\nTestStatements.ClassesAndObjects.InterfaceTest\r\n '-> .Run()\r\nTestStatements.ClassesAndObjects.Members\r\n '-> .set_OnChange(EventHandler value)\r\n '-> .aMethod()\r\n '-> .set_aProperty(Int32 value)\r\nTestStatements.Anweisungen.Checking\r\n '-> .CheckedUnchecked(String[] args)\r\nTestStatements.Anweisungen.ExceptionHandling\r\n '-> .DoTryCatch(String[] args)\r\nTestStatements.Anweisungen.Account\r\nTestStatements.Anweisungen.Locking\r\n '-> .DoLockTest(String[] args)\r\nTestStatements.Anweisungen.ProgramFlow\r\n '-> .DoBreakStatement(String[] args)\r\n '-> .DoContinueStatement(String[] args)\r\n '-> .DoGoToStatement(String[] args)\r\nTestStatements.Anweisungen.Expressions\r\n '-> .DoExpressions(String[] args)\r\nTestStatements.Anweisungen.Declarations\r\n '-> .DoVarDeclarations(String[] args)\r\n '-> .DoConstantDeclarations(String[] args)\r\nTestStatements.Anweisungen.ConditionalStatement\r\n '-> .DoIfStatement(String[] args)\r\n '-> .DoIfStatement2(String[] args)\r\n '-> .DoIfStatement3()\r\n '-> .DoSwitchStatement(String[] args)\r\n '-> .DoSwitchStatement1()\r\nTestStatements.Anweisungen.LoopStatements\r\n '-> .DoWhileStatement(String[] args)\r\n '-> .DoDoStatement(String[] args)\r\n '-> .DoDoStatement2(String[] args)\r\n '-> .DoDoStatement3(String[] args)\r\n '-> .DoDoDoStatement(String[] args)\r\n '-> .DoDoDoStatement2(String[] args)\r\n '-> .DoDoWhileNestedStatement2(String[] args)\r\n '-> .DoForStatement(String[] args)\r\n '-> .DoForStatement2(String[] args)\r\n '-> .DoForEachStatement(String[] args)\r\nTestStatements.Anweisungen.RandomExample\r\n '-> .ExampleMain1()\r\n '-> .ExampleMain2()\r\n '-> .ExampleMain3()\r\nTestStatements.Anweisungen.ReturnStatement\r\n '-> .DoReturnStatement(String[] args)\r\nTestStatements.Anweisungen.SwitchStatement\r\n '-> .SwitchExample1()\r\n '-> .SwitchExample2()\r\n '-> .SwitchExample3()\r\n '-> .SwitchExample4()\r\n '-> .SwitchExample5()\r\n '-> .SwitchExample6()\r\n '-> .SwitchExample7()\r\nTestStatements.Anweisungen.DiceLibrary\r\nTestStatements.Anweisungen.Shape\r\nTestStatements.Anweisungen.Rectangle\r\nTestStatements.Anweisungen.Square\r\nTestStatements.Anweisungen.Circle\r\nTestStatements.Anweisungen.SwitchStatement2\r\n '-> .SwitchExample21()\r\nTestStatements.Anweisungen.YieldStatement\r\n '-> .DoYieldStatement(String[] args)\r\nTestStatements.Anweisungen.UsingStatement\r\n '-> .DoUsingStatement(String[] args)\r\n\r\nTestStatements.Threading.Tasks.AsyncBreakfast+d__1\r\nTestStatements.Threading.Tasks.AsyncBreakfast+d__2\r\nTestStatements.Threading.Tasks.AsyncBreakfast+d__3\r\nTestStatements.Threading.Tasks.AsyncBreakfast+d__6\r\nTestStatements.Threading.Tasks.AsyncBreakfast+d__7\r\nTestStatements.Threading.Tasks.AsyncBreakfast+d__4\r\nTestStatements.Threading.Tasks.AsyncBreakfast+d__5\r\nTestStatements.Threading.Tasks.TaskExample+<>c__DisplayClass3_0\r\nTestStatements.Threading.Tasks.TaskExample+<>c__DisplayClass3_1\r\nTestStatements.Threading.Tasks.TaskExample+<>c__DisplayClass5_0\r\nTestStatements.Threading.Tasks.TaskExample+<>c__DisplayClass5_1\r\nTestStatements.Threading.Tasks.TaskExample+<>c__DisplayClass6_0\r\nTestStatements.Threading.Tasks.TaskExample+<>c__DisplayClass7_0\r\nTestStatements.Threading.Tasks.TaskExample+d__5\r\nTestStatements.Reflection.ReflectionExample+NestedClass\r\nTestStatements.Reflection.ReflectionExample+INested\r\nTestStatements.Linq.LinqLookup+<>c\r\nTestStatements.CS_Concepts.TypeSystem+Coords\r\nTestStatements.CS_Concepts.TypeSystem+FileMode\r\nTestStatements.CS_Concepts.TypeSystem+MyClass\r\nTestStatements.CS_Concepts.TypeSystem+<>c\r\nTestStatements.CS_Concepts.TypeSystem+<>c__DisplayClass2_0\r\nTestStatements.CS_Concepts.TypeSystem+d__10\r\nTestStatements.DataTypes.EnumTest+Days\r\nTestStatements.DataTypes.EnumTest+BoilingPoints\r\nTestStatements.DataTypes.EnumTest+Colors\r\nTestStatements.DataTypes.Formating+<>c\r\nTestStatements.Anweisungen.SwitchStatement+Color\r\nTestStatements.Anweisungen.SwitchStatement+<>c\r\nTestStatements.Anweisungen.SwitchStatement+<>c__12`1\r\nTestStatements.Anweisungen.YieldStatement+d__0\r\n+__StaticArrayInitTypeSize=6\r\n+__StaticArrayInitTypeSize=20\r\n+__StaticArrayInitTypeSize=24\r\nTestStatements.Threading.Tasks.TaskExample+<>c__DisplayClass6_0+<b__0>d\r\nTestStatements.Threading.Tasks.TaskExample+<>c__DisplayClass7_0+<b__0>d\r\n\nExample.SampleMethod(42) executes.\r\nSampleMethod returned 84.\r\n\nAssembly entry point:\r\nVoid Main(System.String[])";
- "Assembly Full Name:\r\nTestStatements, Version={0}, Culture=neutral, PublicKeyToken=null\r\n\r\nName: TestStatements\r\nVersion: 1.0\r\n\r\nAssembly CodeBase:\r\n{1}\r\nMicrosoft.CodeAnalysis.EmbeddedAttribute\r\nSystem.Runtime.CompilerServices.NullableAttribute\r\nSystem.Runtime.CompilerServices.NullableContextAttribute\r\nSystem.Runtime.CompilerServices.RefSafetyRulesAttribute\r\nTestStatements.Program\r\nTestStatements.Threading.Tasks.AsyncBreakfast\r\n '-> .AsyncBreakfast_Main(String[] args)\r\nTestStatements.Threading.Tasks.Juice\r\nTestStatements.Threading.Tasks.Toast\r\nTestStatements.Threading.Tasks.Bacon\r\nTestStatements.Threading.Tasks.Egg\r\nTestStatements.Threading.Tasks.Coffee\r\nTestStatements.Threading.Tasks.IPing\r\nTestStatements.Threading.Tasks.PingProxy\r\nTestStatements.Threading.Tasks.TaskExample\r\n '-> .set_GetPing(Func`1 value)\r\n '-> .ExampleMain()\r\n '-> .ExampleMain1()\r\n '-> .ExampleMain2()\r\n '-> .ExampleMain3()\r\n '-> .ExampleMain4()\r\nTestStatements.SystemNS.System_Namespace\r\nTestStatements.SystemNS.Xml.XmlNS\r\n '-> .XmlTest1()\r\nTestStatements.SystemNS.Printing.Printing_Ex\r\n '-> .PrintDocument()\r\nTestStatements.Runtime.Loader.RTLoaderExample\r\nTestStatements.Reflection.AssemblyExample\r\n '-> .ExampleMain()\r\nTestStatements.Reflection.S\r\nTestStatements.Reflection.ReflectionExample\r\n '-> .ExampleMain()\r\nTestStatements.Properties.Resource1\r\n '-> .set_Culture(CultureInfo value)\r\nTestStatements.Linq.Package\r\nTestStatements.Linq.LinqLookup\r\n '-> .LookupExample()\r\n '-> .ShowContains()\r\n '-> .ShowIEnumerable()\r\n '-> .ShowCount()\r\n '-> .ShowGrouping()\r\nTestStatements.Helper.ExtensionExample\r\n '-> .ShowExtensionEx1()\r\nTestStatements.Helper.Extensions\r\nTestStatements.Diagnostics.DebugExample\r\n '-> .Main()\r\n '-> .DebugWriteExample(String v)\r\nTestStatements.Diagnostics.IStopwatch\r\nTestStatements.Diagnostics.StopWatchExample\r\n '-> .set_GetStopwatch(Func`1 value)\r\n '-> .set_ThreadSleep(Action`1 value)\r\n '-> .ExampleMain()\r\n '-> .ExampleMain1()\r\n '-> .ExampleMain2()\r\n '-> .DisplayTimerProperties()\r\n '-> .TimeOperations()\r\nTestStatements.Diagnostics.StopwatchProxy\r\nTestStatements.DependencyInjection.DIExample2\r\n '-> .TestDependencyInjection()\r\nTestStatements.DependencyInjection.IItem\r\nTestStatements.DependencyInjection.IMessageWriter\r\nTestStatements.DependencyInjection.IObjectProcessor\r\nTestStatements.DependencyInjection.IObjectRelay\r\nTestStatements.DependencyInjection.IObjectStore\r\nTestStatements.DependencyInjection.LoggingMessageWriter\r\nTestStatements.DependencyInjection.MessageWriter\r\nTestStatements.DependencyInjection.Worker\r\nTestStatements.DependencyInjection.Worker2\r\nTestStatements.DataTypes.EnumTest\r\n '-> .MainTest()\r\nTestStatements.DataTypes.Formating\r\n '-> .CombinedFormating()\r\n '-> .IndexKomponent()\r\n '-> .IndexKomponent2()\r\n '-> .IndentationKomponent()\r\n '-> .EscapeSequence()\r\n '-> .CodeExamples1()\r\n '-> .CodeExamples2()\r\n '-> .CodeExamples3()\r\n '-> .CodeExamples4()\r\nTestStatements.DataTypes.IntegratedTypes\r\nTestStatements.DataTypes.StringEx\r\n '-> .AllTests()\r\n '-> .StringEx1()\r\n '-> .StringEx2()\r\n '-> .StringEx3()\r\n '-> .StringEx4()\r\n '-> .StringEx5()\r\n '-> .UnicodeEx1()\r\n '-> .StringSurogarteEx1()\r\nTestStatements.CS_Concepts.TypeSystem\r\n '-> .All()\r\n '-> .UseOfTypes()\r\n '-> .DelareVariables()\r\n '-> .ValueTypes1()\r\n '-> .ValueTypes2()\r\n '-> .ValueTypes3()\r\n '-> .ValueTypes4()\r\nTestStatements.Constants.Constants\r\nTestStatements.Collection.Generic.ComparerExample\r\n '-> .ComparerExampleMain(String[] args)\r\n '-> .ShowSortWithLengthFirstComparer()\r\n '-> .ShowSortwithDefaultComparer()\r\n '-> .ShowLengthFirstComparer()\r\nTestStatements.Collection.Generic.BoxLengthFirst\r\nTestStatements.Collection.Generic.BoxComp\r\nTestStatements.Collection.Generic.Box\r\nTestStatements.Collection.Generic.DictionaryExample\r\n '-> .DictionaryExampleMain()\r\n '-> .TryAddExisting()\r\n '-> .ShowIndex1()\r\n '-> .ShowIndex2()\r\n '-> .AddValueWithDiffKeys()\r\n '-> .ShowIndex4()\r\n '-> .ShowTryGetValue()\r\n '-> .ShowContainsKey()\r\n '-> .ShowValueCollection()\r\n '-> .ShowKeyCollection()\r\n '-> .ShowRemove()\r\nTestStatements.Collection.Generic.SortedListExample\r\n '-> .SortedListMain()\r\n '-> .ShowValues1()\r\n '-> .ShowValues2()\r\n '-> .ShowKeys1()\r\n '-> .ShowKeys2()\r\n '-> .ShowRemove()\r\n '-> .ShowForEach()\r\n '-> .ShowContainsKey()\r\n '-> .ShowTryGetValue()\r\n '-> .TestIndexr()\r\n '-> .TestAddExisting()\r\nTestStatements.Collection.Generic.TestHashSet\r\n '-> .ShowHashSet()\r\nTestStatements.Collection.Generic.Part\r\nTestStatements.Collection.Generic.TestList\r\n '-> .ListMain()\r\n '-> .ShowContains()\r\n '-> .ShowInsert()\r\n '-> .ShowIndex()\r\n '-> .ShowRemove1()\r\n '-> .ShowRemove2()\r\nTestStatements.Collection.Generic.DinosaurExample\r\n '-> .ListDinos()\r\n '-> .ShowCreateData()\r\n '-> .ShowContains()\r\n '-> .ShowInsert()\r\n '-> .ShowItemProperty()\r\n '-> .ShowRemove()\r\n '-> .ShowTrimExcess()\r\n '-> .ShowClear()\r\n '-> .Clear()\r\n '-> .CreateTestData()\r\n '-> .ShowList(List`1 dinosaurs)\r\n '-> .ShowStatus(List`1 dinosaurs)\r\nTestStatements.ClassesAndObjects.IInterface1\r\nTestStatements.ClassesAndObjects.IInterface2\r\nTestStatements.ClassesAndObjects.IInterface3\r\nTestStatements.ClassesAndObjects.Class1\r\nTestStatements.ClassesAndObjects.Class2\r\nTestStatements.ClassesAndObjects.Class3\r\nTestStatements.ClassesAndObjects.Class4\r\nTestStatements.ClassesAndObjects.Class5\r\nTestStatements.ClassesAndObjects.InterfaceTest\r\n '-> .Run()\r\nTestStatements.ClassesAndObjects.Members\r\n '-> .set_OnChange(EventHandler value)\r\n '-> .aMethod()\r\n '-> .set_aProperty(Int32 value)\r\nTestStatements.Anweisungen.Checking\r\n '-> .CheckedUnchecked(String[] args)\r\nTestStatements.Anweisungen.ConditionalStatement\r\n '-> .DoIfStatement(String[] args)\r\n '-> .DoIfStatement2(String[] args)\r\n '-> .DoIfStatement3()\r\n '-> .DoSwitchStatement(String[] args)\r\n '-> .DoSwitchStatement1()\r\nTestStatements.Anweisungen.Declarations\r\n '-> .DoVarDeclarations(String[] args)\r\n '-> .DoConstantDeclarations(String[] args)\r\nTestStatements.Anweisungen.ExceptionHandling\r\n '-> .DoTryCatch(String[] args)\r\n '-> .DoTryFinally(String[] args)\r\nTestStatements.Anweisungen.Expressions\r\n '-> .DoExpressions(String[] args)\r\nTestStatements.Anweisungen.Account\r\nTestStatements.Anweisungen.Locking\r\n '-> .DoLockTest(String[] args)\r\nTestStatements.Anweisungen.LoopStatements\r\n '-> .DoWhileStatement(String[] args)\r\n '-> .DoDoStatement(String[] args)\r\n '-> .DoDoStatement2(String[] args)\r\n '-> .DoDoStatement3(String[] args)\r\n '-> .DoDoDoStatement(String[] args)\r\n '-> .DoDoDoStatement2(String[] args)\r\n '-> .DoDoWhileNestedStatement2(String[] args)\r\n '-> .DoForStatement(String[] args)\r\n '-> .DoForStatement2(String[] args)\r\n '-> .DoForEachStatement(String[] args)\r\nTestStatements.Anweisungen.ProgramFlow\r\n '-> .DoBreakStatement(String[] args)\r\n '-> .DoContinueStatement(String[] args)\r\n '-> .DoGoToStatement(String[] args)\r\nTestStatements.Anweisungen.RandomExample\r\n '-> .ExampleMain1()\r\n '-> .ExampleMain2()\r\n '-> .ExampleMain3()\r\nTestStatements.Anweisungen.ReturnStatement\r\n '-> .DoReturnStatement(String[] args)\r\nTestStatements.Anweisungen.SwitchStatement\r\n '-> .SwitchExample1()\r\n '-> .SwitchExample2()\r\n '-> .SwitchExample3()\r\n '-> .SwitchExample4()\r\n '-> .SwitchExample5()\r\n '-> .SwitchExample6()\r\n '-> .SwitchExample7()\r\nTestStatements.Anweisungen.DiceLibrary\r\nTestStatements.Anweisungen.Shape\r\nTestStatements.Anweisungen.Rectangle\r\nTestStatements.Anweisungen.Square\r\nTestStatements.Anweisungen.Circle\r\nTestStatements.Anweisungen.SwitchStatement2\r\n '-> .SwitchExample21()\r\n '-> .ShowShapeInfo(Shape sh)\r\nTestStatements.Anweisungen.Vehicle\r\nTestStatements.Anweisungen.Car\r\nTestStatements.Anweisungen.Bus\r\nTestStatements.Anweisungen.Truck\r\nTestStatements.Anweisungen.Taxi\r\nTestStatements.Anweisungen.TollCalculator\r\nTestStatements.Anweisungen.SwitchStatement3\r\n '-> .ShowTollCollector()\r\nTestStatements.Anweisungen.UsingStatement\r\n '-> .DoUsingStatement(String[] args)\r\nTestStatements.Anweisungen.YieldStatement\r\n '-> .DoYieldStatement(String[] args)\r\n\r\nTestStatements.Threading.Tasks.AsyncBreakfast+d__1\r\nTestStatements.Threading.Tasks.AsyncBreakfast+d__2\r\nTestStatements.Threading.Tasks.AsyncBreakfast+d__3\r\nTestStatements.Threading.Tasks.AsyncBreakfast+d__6\r\nTestStatements.Threading.Tasks.AsyncBreakfast+d__7\r\nTestStatements.Threading.Tasks.AsyncBreakfast+d__4\r\nTestStatements.Threading.Tasks.AsyncBreakfast+d__5\r\nTestStatements.Threading.Tasks.TaskExample+<>c__DisplayClass3_0\r\nTestStatements.Threading.Tasks.TaskExample+<>c__DisplayClass3_1\r\nTestStatements.Threading.Tasks.TaskExample+<>c__DisplayClass5_0\r\nTestStatements.Threading.Tasks.TaskExample+<>c__DisplayClass5_1\r\nTestStatements.Threading.Tasks.TaskExample+<>c__DisplayClass6_0\r\nTestStatements.Threading.Tasks.TaskExample+<>c__DisplayClass7_0\r\nTestStatements.Threading.Tasks.TaskExample+d__5\r\nTestStatements.SystemNS.Printing.Printing_Ex+<>c\r\nTestStatements.Runtime.Loader.RTLoaderExample+d__0\r\nTestStatements.Reflection.ReflectionExample+NestedClass\r\nTestStatements.Reflection.ReflectionExample+INested\r\nTestStatements.Linq.LinqLookup+<>c\r\nTestStatements.Helper.Extensions+d__3`2\r\nTestStatements.Diagnostics.StopWatchExample+<>c\r\nTestStatements.DependencyInjection.DIExample2+testClass1\r\nTestStatements.DependencyInjection.Worker+d__2\r\nTestStatements.DependencyInjection.Worker2+d__3\r\nTestStatements.DataTypes.EnumTest+Days\r\nTestStatements.DataTypes.EnumTest+BoilingPoints\r\nTestStatements.DataTypes.EnumTest+Colors\r\nTestStatements.DataTypes.Formating+<>c\r\nTestStatements.DataTypes.StringEx+<g__f|3_0>d\r\nTestStatements.DataTypes.StringEx+<>c\r\nTestStatements.CS_Concepts.TypeSystem+Coords\r\nTestStatements.CS_Concepts.TypeSystem+FileMode\r\nTestStatements.CS_Concepts.TypeSystem+MyClass\r\nTestStatements.CS_Concepts.TypeSystem+<>c\r\nTestStatements.CS_Concepts.TypeSystem+<>c__DisplayClass2_0\r\nTestStatements.CS_Concepts.TypeSystem+d__10\r\nTestStatements.Collection.Generic.TestHashSet+<>c__DisplayClass0_0\r\nTestStatements.Anweisungen.SwitchStatement+Color\r\nTestStatements.Anweisungen.SwitchStatement+<>c\r\nTestStatements.Anweisungen.SwitchStatement+<>c__12`1\r\nTestStatements.Anweisungen.SwitchStatement3+Caprio\r\nTestStatements.Anweisungen.YieldStatement+d__0\r\n+__StaticArrayInitTypeSize=6\r\n+__StaticArrayInitTypeSize=16\r\n+__StaticArrayInitTypeSize=20\r\n+__StaticArrayInitTypeSize=24\r\n+__StaticArrayInitTypeSize=72\r\nTestStatements.Threading.Tasks.TaskExample+<>c__DisplayClass6_0+<b__0>d\r\nTestStatements.Threading.Tasks.TaskExample+<>c__DisplayClass7_0+<b__0>d\r\n\r\nExample.SampleMethod(42) executes.\r\nSampleMethod returned 84.\r\n\r\nAssembly entry point:\r\nVoid Main(System.String[])";
+ //"Assembly Full Name:\r\nTestStatements, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null\r\n\nName: TestStatements\r\nVersion: 1.0\r\n\nAssembly CodeBase:\r\nfile:///D:/Projekte/CSharp/bin/Debug/TestStatements.EXE\r\nTestStatements.Program\r\nTestStatements.Resource1\r\nTestStatements.Threading.Tasks.AsyncBreakfast\r\n '-> .AsyncBreakfast_Main(String[] args)\r\nTestStatements.Threading.Tasks.Juice\r\nTestStatements.Threading.Tasks.Toast\r\nTestStatements.Threading.Tasks.Bacon\r\nTestStatements.Threading.Tasks.Egg\r\nTestStatements.Threading.Tasks.Coffee\r\nTestStatements.Threading.Tasks.TaskExample\r\n '-> .ExampleMain()\r\n '-> .ExampleMain1()\r\n '-> .ExampleMain2()\r\n '-> .ExampleMain3()\r\n '-> .ExampleMain4()\r\nTestStatements.SystemNS.System_Namespace\r\nTestStatements.SystemNS.Xml.XmlNS\r\n '-> .XmlTest1()\r\nTestStatements.Reflection.AssemblyExample\r\n '-> .ExampleMain()\r\nTestStatements.Reflection.S\r\nTestStatements.Reflection.ReflectionExample\r\n '-> .ExampleMain()\r\nTestStatements.Linq.Package\r\nTestStatements.Linq.LinqLookup\r\n '-> .LookupExample()\r\n '-> .ShowContains()\r\n '-> .ShowIEnumerable()\r\n '-> .ShowCount()\r\n '-> .ShowGrouping()\r\nTestStatements.Diagnostics.StopWatchExample\r\n '-> .ExampleMain()\r\n '-> .ExampleMain1()\r\n '-> .ExampleMain2()\r\n '-> .DisplayTimerProperties()\r\nTestStatements.CS_Concepts.TypeSystem\r\n '-> .All()\r\n '-> .UseOfTypes()\r\n '-> .DelareVariables()\r\n '-> .ValueTypes1()\r\n '-> .ValueTypes2()\r\n '-> .ValueTypes3()\r\n '-> .ValueTypes4()\r\nTestStatements.DataTypes.EnumTest\r\n '-> .MainTest()\r\nTestStatements.DataTypes.Formating\r\n '-> .CombinedFormating()\r\n '-> .IndexKomponent()\r\n '-> .IndexKomponent2()\r\n '-> .IndentationKomponent()\r\n '-> .EscapeSequence()\r\n '-> .CodeExamples1()\r\n '-> .CodeExamples2()\r\n '-> .CodeExamples3()\r\n '-> .CodeExamples4()\r\nTestStatements.DataTypes.IntegratedTypes\r\nTestStatements.DataTypes.StringEx\r\n '-> .AllTests()\r\n '-> .StringEx1()\r\n '-> .StringEx2()\r\n '-> .StringEx3()\r\n '-> .StringEx4()\r\n '-> .StringEx5()\r\n '-> .UnicodeEx1()\r\n '-> .StringSurogarteEx1()\r\nTestStatements.Constants.Constants\r\nTestStatements.Collection.Generic.ComparerExample\r\n '-> .ComparerExampleMain(String[] args)\r\n '-> .ShowSortWithLengthFirstComparer()\r\n '-> .ShowSortwithDefaultComparer()\r\n '-> .ShowLengthFirstComparer()\r\nTestStatements.Collection.Generic.BoxLengthFirst\r\nTestStatements.Collection.Generic.BoxComp\r\nTestStatements.Collection.Generic.Box\r\nTestStatements.Collection.Generic.DictionaryExample\r\n '-> .DictionaryExampleMain()\r\n '-> .TryAddExisting()\r\n '-> .ShowIndex1()\r\n '-> .ShowIndex2()\r\n '-> .ShowIndex3()\r\n '-> .ShowIndex4()\r\n '-> .ShowTryGetValue()\r\n '-> .ShowContainsKey()\r\n '-> .ShowValueCollection()\r\n '-> .ShowKeyCollection()\r\n '-> .ShowRemove()\r\nTestStatements.Collection.Generic.SortedListExample\r\n '-> .SortedListMain()\r\n '-> .ShowValues1()\r\n '-> .ShowValues2()\r\n '-> .ShowKeys1()\r\n '-> .ShowKeys2()\r\n '-> .ShowRemove()\r\n '-> .ShowForEach()\r\n '-> .ShowContainsKey()\r\n '-> .ShowTryGetValue()\r\n '-> .TestIndexr()\r\n '-> .TestAddExisting()\r\nTestStatements.Collection.Generic.TestHashSet\r\n '-> .ShowHashSet()\r\nTestStatements.Collection.Generic.Part\r\nTestStatements.Collection.Generic.TestList\r\n '-> .ListMain()\r\n '-> .ShowContains()\r\n '-> .ShowInsert()\r\n '-> .ShowIndex()\r\n '-> .ShowRemove1()\r\n '-> .ShowRemove2()\r\nTestStatements.Collection.Generic.DinosaurExample\r\n '-> .ListDinos()\r\n '-> .ShowCreateData()\r\n '-> .ShowContains()\r\n '-> .ShowInsert()\r\n '-> .ShowItemProperty()\r\n '-> .ShowRemove()\r\n '-> .ShowTrimExcess()\r\n '-> .ShowClear()\r\nTestStatements.ClassesAndObjects.Members\r\n '-> .set_OnChange(EventHandler value)\r\n '-> .aMethod()\r\n '-> .set_aProperty(Int32 value)\r\nTestStatements.Anweisungen.Checking\r\n '-> .CheckedUnchecked(String[] args)\r\nTestStatements.Anweisungen.ExceptionHandling\r\n '-> .DoTryCatch(String[] args)\r\nTestStatements.Anweisungen.Account\r\nTestStatements.Anweisungen.Locking\r\n '-> .DoLockTest(String[] args)\r\nTestStatements.Anweisungen.ProgramFlow\r\n '-> .DoBreakStatement(String[] args)\r\n '-> .DoContinueStatement(String[] args)\r\n '-> .DoGoToStatement(String[] args)\r\nTestStatements.Anweisungen.Expressions\r\n '-> .DoExpressions(String[] args)\r\nTestStatements.Anweisungen.Declarations\r\n '-> .DoVarDeclarations(String[] args)\r\n '-> .DoConstantDeclarations(String[] args)\r\nTestStatements.Anweisungen.ConditionalStatement\r\n '-> .DoIfStatement(String[] args)\r\n '-> .DoIfStatement2(String[] args)\r\n '-> .DoIfStatement3()\r\n '-> .DoSwitchStatement(String[] args)\r\n '-> .DoSwitchStatement1()\r\nTestStatements.Anweisungen.LoopStatements\r\n '-> .DoWhileStatement(String[] args)\r\n '-> .DoDoStatement(String[] args)\r\n '-> .DoDoStatement2(String[] args)\r\n '-> .DoDoStatement3(String[] args)\r\n '-> .DoDoDoStatement(String[] args)\r\n '-> .DoDoDoStatement2(String[] args)\r\n '-> .DoDoWhileNestedStatement2(String[] args)\r\n '-> .DoForStatement(String[] args)\r\n '-> .DoForStatement2(String[] args)\r\n '-> .DoForEachStatement(String[] args)\r\nTestStatements.Anweisungen.RandomExample\r\n '-> .ExampleMain1()\r\n '-> .ExampleMain2()\r\n '-> .ExampleMain3()\r\nTestStatements.Anweisungen.ReturnStatement\r\n '-> .DoReturnStatement(String[] args)\r\nTestStatements.Anweisungen.SwitchStatement\r\n '-> .SwitchExample1()\r\n '-> .SwitchExample2()\r\n '-> .SwitchExample3()\r\n '-> .SwitchExample4()\r\n '-> .SwitchExample5()\r\n '-> .SwitchExample6()\r\n '-> .SwitchExample7()\r\nTestStatements.Anweisungen.DiceLibrary\r\nTestStatements.Anweisungen.Shape\r\nTestStatements.Anweisungen.Rectangle\r\nTestStatements.Anweisungen.Square\r\nTestStatements.Anweisungen.Circle\r\nTestStatements.Anweisungen.SwitchStatement2\r\n '-> .SwitchExample21()\r\nTestStatements.Anweisungen.YieldStatement\r\n '-> .DoYieldStatement(String[] args)\r\nTestStatements.Anweisungen.UsingStatement\r\n '-> .DoUsingStatement(String[] args)\r\n\r\nTestStatements.Threading.Tasks.AsyncBreakfast+d__1\r\nTestStatements.Threading.Tasks.AsyncBreakfast+d__2\r\nTestStatements.Threading.Tasks.AsyncBreakfast+d__3\r\nTestStatements.Threading.Tasks.AsyncBreakfast+d__6\r\nTestStatements.Threading.Tasks.AsyncBreakfast+d__7\r\nTestStatements.Threading.Tasks.AsyncBreakfast+d__4\r\nTestStatements.Threading.Tasks.AsyncBreakfast+d__5\r\nTestStatements.Threading.Tasks.TaskExample+<>c__DisplayClass3_0\r\nTestStatements.Threading.Tasks.TaskExample+<>c__DisplayClass3_1\r\nTestStatements.Threading.Tasks.TaskExample+<>c__DisplayClass5_0\r\nTestStatements.Threading.Tasks.TaskExample+<>c__DisplayClass5_1\r\nTestStatements.Threading.Tasks.TaskExample+<>c__DisplayClass6_0\r\nTestStatements.Threading.Tasks.TaskExample+<>c__DisplayClass7_0\r\nTestStatements.Threading.Tasks.TaskExample+d__5\r\nTestStatements.Reflection.ReflectionExample+NestedClass\r\nTestStatements.Reflection.ReflectionExample+INested\r\nTestStatements.Linq.LinqLookup+<>c\r\nTestStatements.CS_Concepts.TypeSystem+Coords\r\nTestStatements.CS_Concepts.TypeSystem+FileMode\r\nTestStatements.CS_Concepts.TypeSystem+MyClass\r\nTestStatements.CS_Concepts.TypeSystem+<>c\r\nTestStatements.CS_Concepts.TypeSystem+<>c__DisplayClass2_0\r\nTestStatements.CS_Concepts.TypeSystem+d__10\r\nTestStatements.DataTypes.EnumTest+Days\r\nTestStatements.DataTypes.EnumTest+BoilingPoints\r\nTestStatements.DataTypes.EnumTest+Colors\r\nTestStatements.DataTypes.Formating+<>c\r\nTestStatements.Anweisungen.SwitchStatement+Color\r\nTestStatements.Anweisungen.SwitchStatement+<>c\r\nTestStatements.Anweisungen.SwitchStatement+<>c__12`1\r\nTestStatements.Anweisungen.YieldStatement+d__0\r\n+__StaticArrayInitTypeSize=6\r\n+__StaticArrayInitTypeSize=20\r\n+__StaticArrayInitTypeSize=24\r\nTestStatements.Threading.Tasks.TaskExample+<>c__DisplayClass6_0+<b__0>d\r\nTestStatements.Threading.Tasks.TaskExample+<>c__DisplayClass7_0+<b__0>d\r\n\nExample.SampleMethod(42) executes.\r\nSampleMethod returned 84.\r\n\nAssembly entry point:\r\nVoid Main(System.String[])";
+ //"Assembly Full Name:\r\nTestStatements, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null\r\n\nName: TestStatements\r\nVersion: 1.0\r\n\nAssembly CodeBase:\r\nfile:///C:/Projekte/CSharp/bin/Debug/TestStatements.EXE\r\nTestStatements.Program\r\nTestStatements.Threading.Tasks.AsyncBreakfast\r\n '-> .AsyncBreakfast_Main(String[] args)\r\nTestStatements.Threading.Tasks.Juice\r\nTestStatements.Threading.Tasks.Toast\r\nTestStatements.Threading.Tasks.Bacon\r\nTestStatements.Threading.Tasks.Egg\r\nTestStatements.Threading.Tasks.Coffee\r\nTestStatements.Threading.Tasks.TaskExample\r\n '-> .ExampleMain()\r\n '-> .ExampleMain1()\r\n '-> .ExampleMain2()\r\n '-> .ExampleMain3()\r\n '-> .ExampleMain4()\r\nTestStatements.SystemNS.System_Namespace\r\nTestStatements.Reflection.AssemblyExample\r\n '-> .ExampleMain()\r\nTestStatements.Reflection.S\r\nTestStatements.Reflection.ReflectionExample\r\n '-> .ExampleMain()\r\nTestStatements.Linq.Package\r\nTestStatements.Linq.LinqLookup\r\n '-> .LookupExample()\r\n '-> .ShowContains()\r\n '-> .ShowIEnumerable()\r\n '-> .ShowCount()\r\n '-> .ShowGrouping()\r\nTestStatements.Diagnostics.StopWatchExample\r\n '-> .ExampleMain()\r\n '-> .ExampleMain1()\r\n '-> .ExampleMain2()\r\n '-> .DisplayTimerProperties()\r\nTestStatements.CS_Concepts.TypeSystem\r\n '-> .All()\r\n '-> .UseOfTypes()\r\n '-> .DelareVariables()\r\n '-> .ValueTypes1()\r\n '-> .ValueTypes2()\r\n '-> .ValueTypes3()\r\n '-> .ValueTypes4()\r\nTestStatements.DataTypes.EnumTest\r\n '-> .MainTest()\r\nTestStatements.DataTypes.Formating\r\n '-> .CombinedFormating()\r\n '-> .IndexKomponent()\r\n '-> .IndexKomponent2()\r\n '-> .IndentationKomponent()\r\n '-> .EscapeSequence()\r\n '-> .CodeExamples1()\r\n '-> .CodeExamples2()\r\n '-> .CodeExamples3()\r\n '-> .CodeExamples4()\r\nTestStatements.DataTypes.IntegratedTypes\r\nTestStatements.DataTypes.StringEx\r\n '-> .AllTests()\r\n '-> .StringEx1()\r\n '-> .StringEx2()\r\n '-> .StringEx3()\r\n '-> .StringEx4()\r\n '-> .StringEx5()\r\n '-> .UnicodeEx1()\r\n '-> .StringSurogarteEx1()\r\nTestStatements.Constants.Constants\r\nTestStatements.Collection.Generic.ComparerExample\r\n '-> .ComparerExampleMain(String[] args)\r\n '-> .ShowSortWithLengthFirstComparer()\r\n '-> .ShowSortwithDefaultComparer()\r\n '-> .ShowLengthFirstComparer()\r\nTestStatements.Collection.Generic.BoxLengthFirst\r\nTestStatements.Collection.Generic.BoxComp\r\nTestStatements.Collection.Generic.Box\r\nTestStatements.Collection.Generic.DictionaryExample\r\n '-> .DictionaryExampleMain()\r\n '-> .TryAddExisting()\r\n '-> .ShowIndex1()\r\n '-> .ShowIndex2()\r\n '-> .ShowIndex3()\r\n '-> .ShowIndex4()\r\n '-> .ShowTryGetValue()\r\n '-> .ShowContainsKey()\r\n '-> .ShowValueCollection()\r\n '-> .ShowKeyCollection()\r\n '-> .ShowRemove()\r\nTestStatements.Collection.Generic.SortedListExample\r\n '-> .SortedListMain()\r\n '-> .ShowValues1()\r\n '-> .ShowValues2()\r\n '-> .ShowKeys1()\r\n '-> .ShowKeys2()\r\n '-> .ShowRemove()\r\n '-> .ShowForEach()\r\n '-> .ShowContainsKey()\r\n '-> .ShowTryGetValue()\r\n '-> .TestIndexr()\r\n '-> .TestAddExisting()\r\nTestStatements.Collection.Generic.TestHashSet\r\n '-> .ShowHashSet()\r\nTestStatements.Collection.Generic.Part\r\nTestStatements.Collection.Generic.TestList\r\n '-> .ListMain()\r\n '-> .ShowContains()\r\n '-> .ShowInsert()\r\n '-> .ShowIndex()\r\n '-> .ShowRemove1()\r\n '-> .ShowRemove2()\r\nTestStatements.Collection.Generic.DinosaurExample\r\n '-> .ListDinos()\r\n '-> .ShowCreateData()\r\n '-> .ShowContains()\r\n '-> .ShowInsert()\r\n '-> .ShowItemProperty()\r\n '-> .ShowRemove()\r\n '-> .ShowTrimExcess()\r\n '-> .ShowClear()\r\nTestStatements.ClassesAndObjects.Members\r\n '-> .set_OnChange(EventHandler value)\r\n '-> .aMethod()\r\n '-> .set_aProperty(Int32 value)\r\nTestStatements.Anweisungen.Checking\r\n '-> .CheckedUnchecked(String[] args)\r\nTestStatements.Anweisungen.ExceptionHandling\r\n '-> .DoTryCatch(String[] args)\r\nTestStatements.Anweisungen.Account\r\nTestStatements.Anweisungen.Locking\r\n '-> .DoLockTest(String[] args)\r\nTestStatements.Anweisungen.ProgramFlow\r\n '-> .DoBreakStatement(String[] args)\r\n '-> .DoContinueStatement(String[] args)\r\n '-> .DoGoToStatement(String[] args)\r\nTestStatements.Anweisungen.Expressions\r\n '-> .DoExpressions(String[] args)\r\nTestStatements.Anweisungen.Declarations\r\n '-> .DoVarDeclarations(String[] args)\r\n '-> .DoConstantDeclarations(String[] args)\r\nTestStatements.Anweisungen.ConditionalStatement\r\n '-> .DoIfStatement(String[] args)\r\n '-> .DoIfStatement2(String[] args)\r\n '-> .DoIfStatement3()\r\n '-> .DoSwitchStatement(String[] args)\r\n '-> .DoSwitchStatement1()\r\nTestStatements.Anweisungen.LoopStatements\r\n '-> .DoWhileStatement(String[] args)\r\n '-> .DoDoStatement(String[] args)\r\n '-> .DoDoStatement2(String[] args)\r\n '-> .DoDoStatement3(String[] args)\r\n '-> .DoDoDoStatement(String[] args)\r\n '-> .DoDoDoStatement2(String[] args)\r\n '-> .DoDoWhileNestedStatement2(String[] args)\r\n '-> .DoForStatement(String[] args)\r\n '-> .DoForStatement2(String[] args)\r\n '-> .DoForEachStatement(String[] args)\r\nTestStatements.Anweisungen.RandomExample\r\n '-> .ExampleMain1()\r\n '-> .ExampleMain2()\r\n '-> .ExampleMain3()\r\nTestStatements.Anweisungen.ReturnStatement\r\n '-> .DoReturnStatement(String[] args)\r\nTestStatements.Anweisungen.SwitchStatement\r\n '-> .SwitchExample1()\r\n '-> .SwitchExample2()\r\n '-> .SwitchExample3()\r\n '-> .SwitchExample4()\r\n '-> .SwitchExample5()\r\n '-> .SwitchExample6()\r\n '-> .SwitchExample7()\r\nTestStatements.Anweisungen.DiceLibrary\r\nTestStatements.Anweisungen.Shape\r\nTestStatements.Anweisungen.Rectangle\r\nTestStatements.Anweisungen.Square\r\nTestStatements.Anweisungen.Circle\r\nTestStatements.Anweisungen.SwitchStatement2\r\n '-> .SwitchExample21()\r\nTestStatements.Anweisungen.YieldStatement\r\n '-> .DoYieldStatement(String[] args)\r\nTestStatements.Anweisungen.UsingStatement\r\n '-> .DoUsingStatement(String[] args)\r\n\r\nTestStatements.Threading.Tasks.AsyncBreakfast+d__1\r\nTestStatements.Threading.Tasks.AsyncBreakfast+d__2\r\nTestStatements.Threading.Tasks.AsyncBreakfast+d__3\r\nTestStatements.Threading.Tasks.AsyncBreakfast+d__4\r\nTestStatements.Threading.Tasks.AsyncBreakfast+d__5\r\nTestStatements.Threading.Tasks.AsyncBreakfast+d__6\r\nTestStatements.Threading.Tasks.AsyncBreakfast+d__7\r\nTestStatements.Threading.Tasks.TaskExample+<>c__DisplayClass3_0\r\nTestStatements.Threading.Tasks.TaskExample+<>c__DisplayClass3_1\r\nTestStatements.Threading.Tasks.TaskExample+<>c__DisplayClass5_0\r\nTestStatements.Threading.Tasks.TaskExample+<>c__DisplayClass5_1\r\nTestStatements.Threading.Tasks.TaskExample+d__5\r\nTestStatements.Threading.Tasks.TaskExample+<>c__DisplayClass6_0\r\nTestStatements.Threading.Tasks.TaskExample+<>c__DisplayClass7_0\r\nTestStatements.Reflection.ReflectionExample+NestedClass\r\nTestStatements.Reflection.ReflectionExample+INested\r\nTestStatements.Linq.LinqLookup+<>c\r\nTestStatements.CS_Concepts.TypeSystem+Coords\r\nTestStatements.CS_Concepts.TypeSystem+FileMode\r\nTestStatements.CS_Concepts.TypeSystem+MyClass\r\nTestStatements.CS_Concepts.TypeSystem+<>c__DisplayClass2_0\r\nTestStatements.CS_Concepts.TypeSystem+<>c\r\nTestStatements.CS_Concepts.TypeSystem+d__10\r\nTestStatements.DataTypes.EnumTest+Days\r\nTestStatements.DataTypes.EnumTest+BoilingPoints\r\nTestStatements.DataTypes.EnumTest+Colors\r\nTestStatements.DataTypes.Formating+<>c\r\nTestStatements.Anweisungen.SwitchStatement+Color\r\nTestStatements.Anweisungen.SwitchStatement+<>c\r\nTestStatements.Anweisungen.SwitchStatement+<>c__12`1\r\nTestStatements.Anweisungen.YieldStatement+d__0\r\n+__StaticArrayInitTypeSize=6\r\n+__StaticArrayInitTypeSize=20\r\n+__StaticArrayInitTypeSize=24\r\nTestStatements.Threading.Tasks.TaskExample+<>c__DisplayClass6_0+<b__0>d\r\nTestStatements.Threading.Tasks.TaskExample+<>c__DisplayClass7_0+<b__0>d\r\n\nExample.SampleMethod(42) executes.\r\nSampleMethod returned 84.\r\n\nAssembly entry point:\r\nVoid Main(System.String[])";
+ "Assembly Full Name:\r\nTestStatements, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null\r\n\nName: TestStatements\r\nVersion: 1.0\r\n\nAssembly CodeBase:\r\nfile:///C:/Projekte/CSharp/bin/TestStatementsTest/Debug/TestStatements.EXE\r\nTestStatements.Program\r\nTestStatements.Resource1\r\nTestStatements.Threading.Tasks.AsyncBreakfast\r\n '-> .AsyncBreakfast_Main(String[] args)\r\nTestStatements.Threading.Tasks.Juice\r\nTestStatements.Threading.Tasks.Toast\r\nTestStatements.Threading.Tasks.Bacon\r\nTestStatements.Threading.Tasks.Egg\r\nTestStatements.Threading.Tasks.Coffee\r\nTestStatements.Threading.Tasks.TaskExample\r\n '-> .ExampleMain()\r\n '-> .ExampleMain1()\r\n '-> .ExampleMain2()\r\n '-> .ExampleMain3()\r\n '-> .ExampleMain4()\r\nTestStatements.SystemNS.System_Namespace\r\nTestStatements.SystemNS.Xml.XmlNS\r\n '-> .XmlTest1()\r\nTestStatements.Reflection.AssemblyExample\r\n '-> .ExampleMain()\r\nTestStatements.Reflection.S\r\nTestStatements.Reflection.ReflectionExample\r\n '-> .ExampleMain()\r\nTestStatements.Linq.Package\r\nTestStatements.Linq.LinqLookup\r\n '-> .LookupExample()\r\n '-> .ShowContains()\r\n '-> .ShowIEnumerable()\r\n '-> .ShowCount()\r\n '-> .ShowGrouping()\r\nTestStatements.Diagnostics.StopWatchExample\r\n '-> .ExampleMain()\r\n '-> .ExampleMain1()\r\n '-> .ExampleMain2()\r\n '-> .DisplayTimerProperties()\r\nTestStatements.CS_Concepts.TypeSystem\r\n '-> .All()\r\n '-> .UseOfTypes()\r\n '-> .DelareVariables()\r\n '-> .ValueTypes1()\r\n '-> .ValueTypes2()\r\n '-> .ValueTypes3()\r\n '-> .ValueTypes4()\r\nTestStatements.DataTypes.EnumTest\r\n '-> .MainTest()\r\nTestStatements.DataTypes.Formating\r\n '-> .CombinedFormating()\r\n '-> .IndexKomponent()\r\n '-> .IndexKomponent2()\r\n '-> .IndentationKomponent()\r\n '-> .EscapeSequence()\r\n '-> .CodeExamples1()\r\n '-> .CodeExamples2()\r\n '-> .CodeExamples3()\r\n '-> .CodeExamples4()\r\nTestStatements.DataTypes.IntegratedTypes\r\nTestStatements.DataTypes.StringEx\r\n '-> .AllTests()\r\n '-> .StringEx1()\r\n '-> .StringEx2()\r\n '-> .StringEx3()\r\n '-> .StringEx4()\r\n '-> .StringEx5()\r\n '-> .UnicodeEx1()\r\n '-> .StringSurogarteEx1()\r\nTestStatements.Constants.Constants\r\nTestStatements.Collection.Generic.ComparerExample\r\n '-> .ComparerExampleMain(String[] args)\r\n '-> .ShowSortWithLengthFirstComparer()\r\n '-> .ShowSortwithDefaultComparer()\r\n '-> .ShowLengthFirstComparer()\r\nTestStatements.Collection.Generic.BoxLengthFirst\r\nTestStatements.Collection.Generic.BoxComp\r\nTestStatements.Collection.Generic.Box\r\nTestStatements.Collection.Generic.DictionaryExample\r\n '-> .DictionaryExampleMain()\r\n '-> .TryAddExisting()\r\n '-> .ShowIndex1()\r\n '-> .ShowIndex2()\r\n '-> .ShowIndex3()\r\n '-> .ShowIndex4()\r\n '-> .ShowTryGetValue()\r\n '-> .ShowContainsKey()\r\n '-> .ShowValueCollection()\r\n '-> .ShowKeyCollection()\r\n '-> .ShowRemove()\r\nTestStatements.Collection.Generic.SortedListExample\r\n '-> .SortedListMain()\r\n '-> .ShowValues1()\r\n '-> .ShowValues2()\r\n '-> .ShowKeys1()\r\n '-> .ShowKeys2()\r\n '-> .ShowRemove()\r\n '-> .ShowForEach()\r\n '-> .ShowContainsKey()\r\n '-> .ShowTryGetValue()\r\n '-> .TestIndexr()\r\n '-> .TestAddExisting()\r\nTestStatements.Collection.Generic.TestHashSet\r\n '-> .ShowHashSet()\r\nTestStatements.Collection.Generic.Part\r\nTestStatements.Collection.Generic.TestList\r\n '-> .ListMain()\r\n '-> .ShowContains()\r\n '-> .ShowInsert()\r\n '-> .ShowIndex()\r\n '-> .ShowRemove1()\r\n '-> .ShowRemove2()\r\nTestStatements.Collection.Generic.DinosaurExample\r\n '-> .ListDinos()\r\n '-> .ShowCreateData()\r\n '-> .ShowContains()\r\n '-> .ShowInsert()\r\n '-> .ShowItemProperty()\r\n '-> .ShowRemove()\r\n '-> .ShowTrimExcess()\r\n '-> .ShowClear()\r\nTestStatements.ClassesAndObjects.IInterface1\r\nTestStatements.ClassesAndObjects.IInterface2\r\nTestStatements.ClassesAndObjects.IInterface3\r\nTestStatements.ClassesAndObjects.Class1\r\nTestStatements.ClassesAndObjects.Class2\r\nTestStatements.ClassesAndObjects.Class3\r\nTestStatements.ClassesAndObjects.Class4\r\nTestStatements.ClassesAndObjects.Class5\r\nTestStatements.ClassesAndObjects.InterfaceTest\r\n '-> .Run()\r\nTestStatements.ClassesAndObjects.Members\r\n '-> .set_OnChange(EventHandler value)\r\n '-> .aMethod()\r\n '-> .set_aProperty(Int32 value)\r\nTestStatements.Anweisungen.Checking\r\n '-> .CheckedUnchecked(String[] args)\r\nTestStatements.Anweisungen.ExceptionHandling\r\n '-> .DoTryCatch(String[] args)\r\nTestStatements.Anweisungen.Account\r\nTestStatements.Anweisungen.Locking\r\n '-> .DoLockTest(String[] args)\r\nTestStatements.Anweisungen.ProgramFlow\r\n '-> .DoBreakStatement(String[] args)\r\n '-> .DoContinueStatement(String[] args)\r\n '-> .DoGoToStatement(String[] args)\r\nTestStatements.Anweisungen.Expressions\r\n '-> .DoExpressions(String[] args)\r\nTestStatements.Anweisungen.Declarations\r\n '-> .DoVarDeclarations(String[] args)\r\n '-> .DoConstantDeclarations(String[] args)\r\nTestStatements.Anweisungen.ConditionalStatement\r\n '-> .DoIfStatement(String[] args)\r\n '-> .DoIfStatement2(String[] args)\r\n '-> .DoIfStatement3()\r\n '-> .DoSwitchStatement(String[] args)\r\n '-> .DoSwitchStatement1()\r\nTestStatements.Anweisungen.LoopStatements\r\n '-> .DoWhileStatement(String[] args)\r\n '-> .DoDoStatement(String[] args)\r\n '-> .DoDoStatement2(String[] args)\r\n '-> .DoDoStatement3(String[] args)\r\n '-> .DoDoDoStatement(String[] args)\r\n '-> .DoDoDoStatement2(String[] args)\r\n '-> .DoDoWhileNestedStatement2(String[] args)\r\n '-> .DoForStatement(String[] args)\r\n '-> .DoForStatement2(String[] args)\r\n '-> .DoForEachStatement(String[] args)\r\nTestStatements.Anweisungen.RandomExample\r\n '-> .ExampleMain1()\r\n '-> .ExampleMain2()\r\n '-> .ExampleMain3()\r\nTestStatements.Anweisungen.ReturnStatement\r\n '-> .DoReturnStatement(String[] args)\r\nTestStatements.Anweisungen.SwitchStatement\r\n '-> .SwitchExample1()\r\n '-> .SwitchExample2()\r\n '-> .SwitchExample3()\r\n '-> .SwitchExample4()\r\n '-> .SwitchExample5()\r\n '-> .SwitchExample6()\r\n '-> .SwitchExample7()\r\nTestStatements.Anweisungen.DiceLibrary\r\nTestStatements.Anweisungen.Shape\r\nTestStatements.Anweisungen.Rectangle\r\nTestStatements.Anweisungen.Square\r\nTestStatements.Anweisungen.Circle\r\nTestStatements.Anweisungen.SwitchStatement2\r\n '-> .SwitchExample21()\r\nTestStatements.Anweisungen.YieldStatement\r\n '-> .DoYieldStatement(String[] args)\r\nTestStatements.Anweisungen.UsingStatement\r\n '-> .DoUsingStatement(String[] args)\r\n\r\nTestStatements.Threading.Tasks.AsyncBreakfast+d__1\r\nTestStatements.Threading.Tasks.AsyncBreakfast+d__2\r\nTestStatements.Threading.Tasks.AsyncBreakfast+d__3\r\nTestStatements.Threading.Tasks.AsyncBreakfast+d__6\r\nTestStatements.Threading.Tasks.AsyncBreakfast+d__7\r\nTestStatements.Threading.Tasks.AsyncBreakfast+d__4\r\nTestStatements.Threading.Tasks.AsyncBreakfast+d__5\r\nTestStatements.Threading.Tasks.TaskExample+<>c__DisplayClass3_0\r\nTestStatements.Threading.Tasks.TaskExample+<>c__DisplayClass3_1\r\nTestStatements.Threading.Tasks.TaskExample+<>c__DisplayClass5_0\r\nTestStatements.Threading.Tasks.TaskExample+<>c__DisplayClass5_1\r\nTestStatements.Threading.Tasks.TaskExample+<>c__DisplayClass6_0\r\nTestStatements.Threading.Tasks.TaskExample+<>c__DisplayClass7_0\r\nTestStatements.Threading.Tasks.TaskExample+d__5\r\nTestStatements.Reflection.ReflectionExample+NestedClass\r\nTestStatements.Reflection.ReflectionExample+INested\r\nTestStatements.Linq.LinqLookup+<>c\r\nTestStatements.CS_Concepts.TypeSystem+Coords\r\nTestStatements.CS_Concepts.TypeSystem+FileMode\r\nTestStatements.CS_Concepts.TypeSystem+MyClass\r\nTestStatements.CS_Concepts.TypeSystem+<>c\r\nTestStatements.CS_Concepts.TypeSystem+<>c__DisplayClass2_0\r\nTestStatements.CS_Concepts.TypeSystem+d__10\r\nTestStatements.DataTypes.EnumTest+Days\r\nTestStatements.DataTypes.EnumTest+BoilingPoints\r\nTestStatements.DataTypes.EnumTest+Colors\r\nTestStatements.DataTypes.Formating+<>c\r\nTestStatements.Anweisungen.SwitchStatement+Color\r\nTestStatements.Anweisungen.SwitchStatement+<>c\r\nTestStatements.Anweisungen.SwitchStatement+<>c__12`1\r\nTestStatements.Anweisungen.YieldStatement+d__0\r\n+__StaticArrayInitTypeSize=6\r\n+__StaticArrayInitTypeSize=20\r\n+__StaticArrayInitTypeSize=24\r\nTestStatements.Threading.Tasks.TaskExample+<>c__DisplayClass6_0+<b__0>d\r\nTestStatements.Threading.Tasks.TaskExample+<>c__DisplayClass7_0+<b__0>d\r\n\nExample.SampleMethod(42) executes.\r\nSampleMethod returned 84.\r\n\nAssembly entry point:\r\nVoid Main(System.String[])";
#endif
// ???
@@ -87,9 +85,7 @@ public void SampleDataMethodTest() {
[TestMethod()]
public void ExampleMainTest()
{
- string _sVersion = typeof(AssemblyExample).Assembly.GetName().Version.ToString();
- string _sCodeBase = typeof(AssemblyExample).Assembly.GetName().CodeBase;
- AssertConsoleOutput(string.Format(cExpExampleMain,_sVersion,_sCodeBase), AssemblyExample.ExampleMain);
+ AssertConsoleOutput(cExpExampleMain, AssemblyExample.ExampleMain);
}
}
}
diff --git a/TestStatements/TestStatementsTest/Reflection/ReflectionExampleTests.cs b/TestStatements/TestStatementsTest/Reflection/ReflectionExampleTests.cs
index 1cb743cdc..a2500120c 100644
--- a/TestStatements/TestStatementsTest/Reflection/ReflectionExampleTests.cs
+++ b/TestStatements/TestStatementsTest/Reflection/ReflectionExampleTests.cs
@@ -1,10 +1,4 @@
using Microsoft.VisualStudio.TestTools.UnitTesting;
-using TestStatements.Reflection;
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
using TestStatements.UnitTesting;
namespace TestStatements.Reflection.Tests
diff --git a/TestStatements/TestStatementsTest/SystemNS/Xml/XmlNSTests.cs b/TestStatements/TestStatementsTest/SystemNS/Xml/XmlNSTests.cs
index a676f4f6f..0cae44c0b 100644
--- a/TestStatements/TestStatementsTest/SystemNS/Xml/XmlNSTests.cs
+++ b/TestStatements/TestStatementsTest/SystemNS/Xml/XmlNSTests.cs
@@ -1,10 +1,5 @@
using Microsoft.VisualStudio.TestTools.UnitTesting;
-using TestStatements.SystemNS.Xml;
using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
using System.IO;
namespace TestStatements.SystemNS.Xml.Tests
diff --git a/TestStatements/TestStatementsTest/TestStatementsTest.csproj b/TestStatements/TestStatementsTest/TestStatementsTest.csproj
index 09ea879a7..0dc26279a 100644
--- a/TestStatements/TestStatementsTest/TestStatementsTest.csproj
+++ b/TestStatements/TestStatementsTest/TestStatementsTest.csproj
@@ -29,8 +29,8 @@
-
-
+
+
all
runtime; build; native; contentfiles; analyzers; buildtransitive
diff --git a/TestStatements/TestStatementsTest/TestStatements_netTest.csproj b/TestStatements/TestStatementsTest/TestStatements_netTest.csproj
index 9924d3367..0cda55cbf 100644
--- a/TestStatements/TestStatementsTest/TestStatements_netTest.csproj
+++ b/TestStatements/TestStatementsTest/TestStatements_netTest.csproj
@@ -3,7 +3,7 @@
- net6.0;net7.0;net8.0
+ net6.0;net7.0;net8.0;net9.0
false
false
false
@@ -14,9 +14,7 @@
-
- 12.0
-
+
@@ -31,8 +29,8 @@
-
-
+
+
all
runtime; build; native; contentfiles; analyzers; buildtransitive
diff --git a/TestStatements/TestStatementsTest/Threading/Tasks/MyPing.cs b/TestStatements/TestStatementsTest/Threading/Tasks/MyPing.cs
new file mode 100644
index 000000000..55e97d83f
--- /dev/null
+++ b/TestStatements/TestStatementsTest/Threading/Tasks/MyPing.cs
@@ -0,0 +1,33 @@
+
+using System;
+using System.Linq;
+using System.Net;
+using System.Net.NetworkInformation;
+using System.Reflection;
+
+namespace TestStatements.Threading.Tasks.Tests;
+
+public class MyPing(string[] asKnownHosts) : IPing
+{
+ // from StackOverflow
+ public static PingReply CreateReply(IPStatus ipStatus, long rtt = 0, byte[]? buffer = null)
+ {
+ IPAddress address = IPAddress.Loopback;
+ var args = new object?[5] { address, null, ipStatus, rtt, buffer };
+ var types = new Type[5] { typeof(IPAddress), typeof(PingOptions), typeof(IPStatus), typeof(long), typeof(byte[]) };
+ var conInfo = typeof(PingReply).GetConstructor(BindingFlags.Instance | BindingFlags.NonPublic, null, types, null);
+ var newObj = conInfo?.Invoke(args);
+ return newObj is PingReply pr ? pr : throw new Exception("failure to create PingReply");
+ }
+ public PingReply Send(string hostNameOrAddress)
+ {
+ if (asKnownHosts.Contains(hostNameOrAddress))
+ {
+ return CreateReply(IPStatus.Success);
+ }
+ else
+ {
+ return CreateReply(IPStatus.TimedOut);
+ }
+ }
+}
\ No newline at end of file
diff --git a/TestStatements/TestStatementsTest/Threading/Tasks/TaskExampleTests.cs b/TestStatements/TestStatementsTest/Threading/Tasks/TaskExampleTests.cs
index fbc1cc6e3..ddb3dbd3b 100644
--- a/TestStatements/TestStatementsTest/Threading/Tasks/TaskExampleTests.cs
+++ b/TestStatements/TestStatementsTest/Threading/Tasks/TaskExampleTests.cs
@@ -18,22 +18,16 @@ namespace TestStatements.Threading.Tasks.Tests
public class TaskExampleTests : ConsoleTestsBase
{
private readonly string cExpExampleMain =
- "Sending Pings\r\n0 ping attempts failed\r\nSending Pings\r\nAll ping attempts succeeded.\r\nGenerate Numbers\r\nMean: 503,10, n = 1,000\r\nMean: 507,36, n = 1,000\r\nMean: 474,88, n = 1,000\r\nMean: 495,56, n = 1,000\r\nMean: 491,22, n = 1,000\r\nMean: 506,53, n = 1,000\r\nMean: 499,74, n = 1,000\r\nMean: 503,98, n = 1,000\r\nMean: 493,25, n = 1,000\r\nMean: 490,20, n = 1,000\r\n\nMean of Means: 496,00, n = 10,000\r\nGenerate Numbers\r\nMean: 500,63, n = 1,000\r\nMean: 502,50, n = 1,000\r\nMean: 499,13, n = 1,000\r\nMean: 500,59, n = 1,000\r\nMean: 496,34, n = 1,000\r\nMean: 499,99, n = 1,000\r\nMean: 512,83, n = 1,000\r\nMean: 511,17, n = 1,000\r\nMean: 503,20, n = 1,000\r\nMean: 509,64, n = 1,000\r\n\nMean of Means: 503,00, n = 10,000";
+ "Sending Pings\r\n5 ping attempts failed\r\nSending Pings\r\n5 ping attempts failed\r\nGenerate Numbers\r\nMean: 503,10, n = 1,000\r\nMean: 507,36, n = 1,000\r\nMean: 474,88, n = 1,000\r\nMean: 495,56, n = 1,000\r\nMean: 491,22, n = 1,000\r\nMean: 506,53, n = 1,000\r\nMean: 499,74, n = 1,000\r\nMean: 503,98, n = 1,000\r\nMean: 493,25, n = 1,000\r\nMean: 490,20, n = 1,000\r\n\nMean of Means: 496,00, n = 10,000\r\nGenerate Numbers\r\nMean: 500,63, n = 1,000\r\nMean: 502,50, n = 1,000\r\nMean: 499,13, n = 1,000\r\nMean: 500,59, n = 1,000\r\nMean: 496,34, n = 1,000\r\nMean: 499,99, n = 1,000\r\nMean: 512,83, n = 1,000\r\nMean: 511,17, n = 1,000\r\nMean: 503,20, n = 1,000\r\nMean: 509,64, n = 1,000\r\n\nMean of Means: 503,00, n = 10,000";
private readonly string cExpExampleMain1 =
- "Sending Pings\r\n0 ping attempts failed";
+ "Sending Pings\r\n5 ping attempts failed";
private readonly string cExpExampleMain2 =
- "Sending Pings\r\nAll ping attempts succeeded.";
+ "Sending Pings\r\n5 ping attempts failed";
private readonly string cExpExampleMain3 =
"Generate Numbers\r\nMean: 503,10, n = 1,000\r\nMean: 507,36, n = 1,000\r\nMean: 474,88, n = 1,000\r\nMean: 495,56, n = 1,000\r\nMean: 491,22, n = 1,000\r\nMean: 506,53, n = 1,000\r\nMean: 499,74, n = 1,000\r\nMean: 503,98, n = 1,000\r\nMean: 493,25, n = 1,000\r\nMean: 490,20, n = 1,000\r\n\nMean of Means: 496,00, n = 10,000";
private readonly string cExpExampleMain4 =
"Generate Numbers\r\nMean: 503,10, n = 1,000\r\nMean: 507,36, n = 1,000\r\nMean: 474,88, n = 1,000\r\nMean: 495,56, n = 1,000\r\nMean: 491,22, n = 1,000\r\nMean: 506,53, n = 1,000\r\nMean: 499,74, n = 1,000\r\nMean: 503,98, n = 1,000\r\nMean: 493,25, n = 1,000\r\nMean: 490,20, n = 1,000\r\n\nMean of Means: 496,00, n = 10,000";
- [TestInitialize]
- public void Init()
- {
- TaskExample.GetPing = () => new MyPing(new[] { ""});
- }
-
///
/// Defines the test method ExampleMainTest.
///
diff --git a/TestStatements/TestStatementsTest/UnitTesting/ConsoleTestsBase.cs b/TestStatements/TestStatementsTest/UnitTesting/ConsoleTestsBase.cs
index 317e4cd9f..abc468ff9 100644
--- a/TestStatements/TestStatementsTest/UnitTesting/ConsoleTestsBase.cs
+++ b/TestStatements/TestStatementsTest/UnitTesting/ConsoleTestsBase.cs
@@ -1,68 +1,32 @@
using System;
-using System.Diagnostics;
using System.IO;
using Microsoft.VisualStudio.TestTools.UnitTesting;
namespace TestStatements.UnitTesting {
- ///
- /// Class ConsoleTestsBase.
- ///
- public class ConsoleTestsBase
- {
- [DebuggerHidden]
- public static void AssertAreEqual(string sExp, string sAct, string Msg = "")
- {
- var sSep = new String[] { Environment.NewLine };
- AssertAreEqual(sExp.Split(sSep, StringSplitOptions.None), sAct.Split(sSep, StringSplitOptions.None), Msg);
- return;
- }
-
- ///
- /// Assert that both string-arrays are equal. (with diagnosis)
- ///
- /// The exp.
- /// The act.
- /// The MSG.
- ///
- [DebuggerHidden]
- public static void AssertAreEqual(string[] exp, string[] act, string Msg = "")
- {
- static string BldLns(int i, string[] aLines)
- => (i > 1 ? $"#{i - 2:D3}: {aLines[i - 2]}{Environment.NewLine}" : "") +
- (i > 0 ? $"#{i - 1:D3}: {aLines[i - 1]}{Environment.NewLine}" : "") +
- $"#{i:D3}> {aLines[i]}" +
- (i < aLines.Length - 1 ? $"{Environment.NewLine}#{i + 1:D3}: {aLines[i + 1]}" : "") +
- (i < aLines.Length - 2 ? $"{Environment.NewLine}#{i + 2:D3}: {aLines[i + 2]}" : "");
- if (exp != null && exp.Length / 2 < act?.Length)
- for (int i = 0; i < Math.Min(exp.Length, act.Length); i++)
- if (exp[i] != act[i])
- Assert.AreEqual(BldLns(i, exp), BldLns(i, act), $"{Msg}: Entry{i}:");
- Assert.AreEqual(exp?.Length, act?.Length);
- }
-
- protected static void AssertConsoleOutput(string Expected, Action ToTest)
- {
+ ///
+ /// Class ConsoleTestsBase.
+ ///
+ public class ConsoleTestsBase {
+ protected static void AssertConsoleOutput(string Expected, Action ToTest) {
using var sw = new StringWriter();
Console.SetOut(sw);
ToTest?.Invoke();
var result = sw.ToString().Trim();
- AssertAreEqual(Expected, result);
+ Assert.AreEqual(Expected, result);
}
- protected static void AssertConsoleOutputArgs(string Expected, string[] Args, Action ToTest)
- {
+ protected static void AssertConsoleOutputArgs(string Expected, string[] Args, Action ToTest) {
using var sw = new StringWriter();
Console.SetOut(sw);
ToTest?.Invoke(Args);
var result = sw.ToString().Trim();
- AssertAreEqual(Expected, result);
+ Assert.AreEqual(Expected, result);
}
- protected void AssertConsoleInOutputArgs(string Expected, string TestInput, string[] Args, Action ToTest)
- {
+ protected void AssertConsoleInOutputArgs(string Expected, string TestInput, string[] Args, Action ToTest) {
using var sw = new StringWriter();
using var sr = new StringReader(TestInput);
Console.SetOut(sw);
@@ -71,8 +35,7 @@ protected void AssertConsoleInOutputArgs(string Expected, string TestInput, stri
ToTest?.Invoke(Args);
var result = sw.ToString().Trim();
- AssertAreEqual(Expected, result);
+ Assert.AreEqual(Expected, result);
}
-
- }
+ }
}
diff --git a/TestStatements/TestStatementsTest/UnitTesting/DataTests.cs b/TestStatements/TestStatementsTest/UnitTesting/DataTests.cs
index 76580006b..df8db6911 100644
--- a/TestStatements/TestStatementsTest/UnitTesting/DataTests.cs
+++ b/TestStatements/TestStatementsTest/UnitTesting/DataTests.cs
@@ -1,20 +1,15 @@
using Microsoft.VisualStudio.TestTools.UnitTesting;
using TestStatements.Reflection;
-using System;
using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-using TestStatements.UnitTesting;
namespace TestStatements.UnitTesting.Tests
{
- ///
- /// Defines test class DataTests.
- /// Implements the
- ///
- ///
- [TestClass()]
+ ///
+ /// Defines test class DataTests.
+ /// Implements the
+ ///
+ ///
+ [TestClass()]
public class DataTests : ConsoleTestsBase
{
static int[] NullSeries5() => new int[] { 2, 1, 3, -1, 0 };
diff --git a/TestStatements/TestStatementsTest/UnitTesting/UnitTest1.cs b/TestStatements/TestStatementsTest/UnitTesting/UnitTest1.cs
index e3292286e..85e84ff72 100644
--- a/TestStatements/TestStatementsTest/UnitTesting/UnitTest1.cs
+++ b/TestStatements/TestStatementsTest/UnitTesting/UnitTest1.cs
@@ -2,14 +2,13 @@
using Microsoft.VisualStudio.TestTools.UnitTesting;
using System.Collections.Generic;
using System.Linq;
-using System.IO;
namespace TestStatementTest.UnitTesting
{
- ///
- /// Defines test class UnitTest1.
- ///
- [TestClass]
+ ///
+ /// Defines test class UnitTest1.
+ ///
+ [TestClass]
public class UnitTest1
{
static int[] NullSeries5(int f=1) => new int[] { 2*f, 1 * f, 3 * f, -1 * f, 0 * f };
diff --git a/TestStatements/Tutorials/DeclarationOfVariables/UseVariables.cs b/TestStatements/Tutorials/DeclarationOfVariables/UseVariables.cs
index 4f5b952c0..8d12b6813 100644
--- a/TestStatements/Tutorials/DeclarationOfVariables/UseVariables.cs
+++ b/TestStatements/Tutorials/DeclarationOfVariables/UseVariables.cs
@@ -1,15 +1,8 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
+namespace Tutorials.DeclarationOfVariables;
-namespace Tutorials.DeclarationOfVariables
+///
+/// Class UseVariables.
+///
+class UseVariables
{
- ///
- /// Class UseVariables.
- ///
- class UseVariables
- {
- }
}
diff --git a/TestStatements/Tutorials/HelloWorld/HelloWorld.cs b/TestStatements/Tutorials/HelloWorld/HelloWorld.cs
index 0fb3782ed..793822b76 100644
--- a/TestStatements/Tutorials/HelloWorld/HelloWorld.cs
+++ b/TestStatements/Tutorials/HelloWorld/HelloWorld.cs
@@ -1,24 +1,19 @@
using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-namespace Tutorials.HelloWorld
+namespace Tutorials.HelloWorld;
+
+/// Ausführen des ersten C#-Programms
+public static class HelloWorldClass
{
- /// Ausführen des ersten C#-Programms
- public static class HelloWorldClass
+ ///
+ /// Führen Sie den folgenden Code im interaktiven Fenster aus. Wählen Sie die Schaltfläche Enter focus mode (Fokusmodus aktivieren) aus. Geben Sie anschließend den folgenden Codeblock in das interaktive Fenster ein, und wählen Sie Ausführen aus:
+ ///
+ ///
+ /// Herzlichen Glückwunsch! Sie haben Ihr erstes C#-Programm ausgeführt. Hierbei handelt es sich um ein einfaches Programm, das die Meldung „Hello World!“ ausgibt. Diese Meldung wird anhand der Console.WriteLine-Methode ausgegeben. Der Console-Typ stellt das Konsolenfenster dar. WriteLine ist eine Methode des Console-Typs, die eine Textzeile in dieser Textkonsole ausgibt.
+ /// Fahren wir fort, und sehen wir uns das einmal genauer an. In der restlichen Lektion wird die Arbeit mit dem string-Typ erklärt, der Text in C# darstellt. Wie der Console-Typ weist der string-Typ bestimmte Methoden auf. Bei den string-Methoden geht es um Text.
+ ///
+ public static void HelloWorld()
{
- ///
- /// Führen Sie den folgenden Code im interaktiven Fenster aus. Wählen Sie die Schaltfläche Enter focus mode (Fokusmodus aktivieren) aus. Geben Sie anschließend den folgenden Codeblock in das interaktive Fenster ein, und wählen Sie Ausführen aus:
- ///
- ///
- /// Herzlichen Glückwunsch! Sie haben Ihr erstes C#-Programm ausgeführt. Hierbei handelt es sich um ein einfaches Programm, das die Meldung „Hello World!“ ausgibt. Diese Meldung wird anhand der Console.WriteLine-Methode ausgegeben. Der Console-Typ stellt das Konsolenfenster dar. WriteLine ist eine Methode des Console-Typs, die eine Textzeile in dieser Textkonsole ausgibt.
- /// Fahren wir fort, und sehen wir uns das einmal genauer an. In der restlichen Lektion wird die Arbeit mit dem string-Typ erklärt, der Text in C# darstellt. Wie der Console-Typ weist der string-Typ bestimmte Methoden auf. Bei den string-Methoden geht es um Text.
- ///
- public static void HelloWorld()
- {
- Console.WriteLine("Hello World!");
- }
+ Console.WriteLine("Hello World!");
}
}
diff --git a/TestStatements/Tutorials/Program.cs b/TestStatements/Tutorials/Program.cs
index 4e1126ce8..8d5888d33 100644
--- a/TestStatements/Tutorials/Program.cs
+++ b/TestStatements/Tutorials/Program.cs
@@ -1,18 +1,11 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
+namespace Tutorials;
-namespace Tutorials
+///
+/// Class Program.
+///
+class Program
{
- ///
- /// Class Program.
- ///
- class Program
+ static void Main(string[] args)
{
- static void Main(string[] args)
- {
- }
}
}
diff --git a/TestStatements/Tutorials/Properties/AssemblyInfo.cs b/TestStatements/Tutorials/Properties/AssemblyInfo.cs
index aec0333ed..ef9a38744 100644
--- a/TestStatements/Tutorials/Properties/AssemblyInfo.cs
+++ b/TestStatements/Tutorials/Properties/AssemblyInfo.cs
@@ -1,16 +1,5 @@
using System.Reflection;
-using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
-
-// Allgemeine Informationen über eine Assembly werden über die folgenden
-// Attribute gesteuert. Ändern Sie diese Attributwerte, um die Informationen zu ändern,
-// die einer Assembly zugeordnet sind.
-[assembly: AssemblyTitle("Tutorials")]
-[assembly: AssemblyDescription("")]
-[assembly: AssemblyConfiguration("")]
-[assembly: AssemblyCompany("JC-Soft")]
-[assembly: AssemblyProduct("Tutorials")]
-[assembly: AssemblyCopyright("Copyright © JC-Soft 2020")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
@@ -21,16 +10,3 @@
// Die folgende GUID bestimmt die ID der Typbibliothek, wenn dieses Projekt für COM verfügbar gemacht wird
[assembly: Guid("c84a2121-34b1-424f-8a90-db2e7c76e313")]
-
-// Versionsinformationen für eine Assembly bestehen aus den folgenden vier Werten:
-//
-// Hauptversion
-// Nebenversion
-// Buildnummer
-// Revision
-//
-// Sie können alle Werte angeben oder Standardwerte für die Build- und Revisionsnummern verwenden,
-// indem Sie "*" wie unten gezeigt eingeben:
-// [assembly: AssemblyVersion("1.0.*")]
-[assembly: AssemblyVersion("1.0.0.0")]
-[assembly: AssemblyFileVersion("1.0.0.0")]
diff --git a/TestStatements/Tutorials/Tutorials.csproj b/TestStatements/Tutorials/Tutorials.csproj
index f6d8ce410..e28184d13 100644
--- a/TestStatements/Tutorials/Tutorials.csproj
+++ b/TestStatements/Tutorials/Tutorials.csproj
@@ -1,62 +1,14 @@
-
-
-
- Debug
- AnyCPU
- {C84A2121-34B1-424F-8A90-DB2E7C76E313}
- Exe
- Tutorials
- Tutorials
- v4.8
- 512
- true
- ..\..\obj\$(MSBuildProjectName)\
- ..\..\bin\$(MSBuildProjectName)\
- true
-
-
-
-
- AnyCPU
- true
- full
- false
- ..\..\bin\Debug\
- DEBUG;TRACE
- prompt
- 4
-
-
- AnyCPU
- pdbonly
- true
- ..\..\bin\Release\
- TRACE
- prompt
- 4
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+ net9.0
+ Exe
+ false
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/TestStatements/ctlClockLib/Properties/AssemblyInfo.cs b/TestStatements/ctlClockLib/Properties/AssemblyInfo.cs
index ebd2b9966..f48a980bb 100644
--- a/TestStatements/ctlClockLib/Properties/AssemblyInfo.cs
+++ b/TestStatements/ctlClockLib/Properties/AssemblyInfo.cs
@@ -1,5 +1,4 @@
using System.Reflection;
-using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// Allgemeine Informationen über eine Assembly werden über die folgenden
diff --git a/TestStatements/ctlClockLib/ctlAlarmClock.cs b/TestStatements/ctlClockLib/ctlAlarmClock.cs
index 422539baf..f009d5133 100644
--- a/TestStatements/ctlClockLib/ctlAlarmClock.cs
+++ b/TestStatements/ctlClockLib/ctlAlarmClock.cs
@@ -1,12 +1,5 @@
using System;
-using System.Collections.Generic;
-using System.ComponentModel;
using System.Drawing;
-using System.Data;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-using System.Windows.Forms;
namespace ctlClockLib
{
diff --git a/TestStatements/ctlClockLib/ctlClock.cs b/TestStatements/ctlClockLib/ctlClock.cs
index 08e21c2ba..4e19f8001 100644
--- a/TestStatements/ctlClockLib/ctlClock.cs
+++ b/TestStatements/ctlClockLib/ctlClock.cs
@@ -1,11 +1,5 @@
using System;
-using System.Collections.Generic;
-using System.ComponentModel;
using System.Drawing;
-using System.Data;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
using System.Windows.Forms;
namespace ctlClockLib
diff --git a/TestStatements/ctlClockLib/ctlClockLib.csproj b/TestStatements/ctlClockLib/ctlClockLib.csproj
index d7fd065e0..ec22ab19a 100644
--- a/TestStatements/ctlClockLib/ctlClockLib.csproj
+++ b/TestStatements/ctlClockLib/ctlClockLib.csproj
@@ -1,22 +1,72 @@
-
-
-
-
+
+
+ Debug
+ AnyCPU
+ {A9D34A5D-3500-439A-B647-E9ABD6DB863E}
Library
- net462-windows;net472-windows;net481-windows;net48-windows
- true
+ ctlClockLib
+ ctlClockLib
+ v4.8
+ 512
+ true
+ ..\..\obj\$(MSBuildProjectName)\
+ ..\..\bin\$(MSBuildProjectName)\
+
-
-
-
+
+
+ true
+ full
+ false
+ ..\..\bin\Debug\
+ DEBUG;TRACE
+ prompt
+ 4
+
+
+ pdbonly
+ true
+ ..\..\bin\Release\
+ TRACE
+ prompt
+ 4
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
+
+ UserControl
+
+
+ ctlAlarmClock.cs
+
+
+ UserControl
+
+
+ ctlClock.cs
+
+
+
-
+
+ ctlAlarmClock.cs
+
+
+ ctlClock.cs
+
+
\ No newline at end of file