Skip to content

Instantly share code, notes, and snippets.

@DvdKhl
Created September 27, 2020 17:48
Show Gist options
  • Save DvdKhl/38263724d15695e92b8cffd4287a2b4d to your computer and use it in GitHub Desktop.
Save DvdKhl/38263724d15695e92b8cffd4287a2b4d to your computer and use it in GitHub Desktop.
RecordDebugStackoverflow
using System;
using System.Collections.Immutable;
//.NET 5 RC1 / Visual Studio 2019 Preview (Version 16.8.0 Preview 3.1)
//1. Set breakpoint on Console.WriteLine
//2. Start debugging
//3. Hover ActiveModuleSet with mouse
namespace RecordDebugStackoverflow {
class Program {
public record ModuleManifest(string Name, Version Version);
public record ModuleSet(ImmutableArray<ModuleManifest> Manifests) {
public static ModuleSet Empty { get; } = new ModuleSet(ImmutableArray<ModuleManifest>.Empty);
}
public static ModuleSet ActiveModuleSet { get; private set; } = ModuleSet.Empty;
static void Main(string[] args) {
Console.WriteLine("Hello World!");
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment