Shows how to enable Blazor WebAssembly Ahead-Of-Time compilation in .NET 6 via RunAOTCompilation in csproj and dotnet workload install wasm-tools, then benchmarks it: AOT took 4m42s to publish (30.4 MB, 8.1 MB first load) versus 11s normally (25.7 MB, 3.3 MB), using a Conway's Game of Life demo. ...
Sets up logging in a Unity game by adding a dedicated MonoBehaviour component that hooks the Awake lifecycle event before Start or Update run, covering Debug.LogError/LogException versus throwing, and forwarding messages on to elmah.io. ...
Benchmarks .NET 6's new LINQ extensions with BenchmarkDotNet, comparing ElementAt(^2) against Count()-2 and TakeLast on a 1,000-item range, then covers MaxBy, DistinctBy, and FirstOrDefault overloads with custom default values. ...
Solves Kattis's flightcollision drone problem using .NET 6's new PriorityQueue, building a collision queue keyed by (drone1, drone2) tuples with collision time as priority to repeatedly find and remove the next pair to collide. ...
Uses .NET 6's DynamicComponent tag to render a list of Type/Dictionary tuples instead of a big switch statement, then drives it from an appsettings.json content section parsed via IConfiguration and Type.GetType to avoid page-component coupling. ...
Fixes the 404 that hits direct-linked Blazor WASM routes on GitHub Pages by adding a wwwroot/404.html using the spa-github-pages redirect script with pathSegmentsToKeep set to 1, restoring the original route via query string. ...
Populates a UserProfile model with Faker.Net: Faker.Name.FullName with prefixes, Faker.RandomNumber for follower counts, Faker.Address for country/city, Faker.Enum.Random for a Visibility enum, and Faker.Internet.Email built from the generated name. ...
Demonstrates serving iCal calendar feeds from .NET using the Ical.Net NuGet package (version 4.1.2 for .NET Core 3.0+), covering creating a Calendar and CalendarEvent, serializing to VCALENDAR text with CalendarSerializer, adding time zones via NodaTime identifiers, and handling recurring events. ...
Among the .NET 5 Blazor improvements there are IJSObjectReference's (JavaScript Object References). The name indicates that this can only be used to isolate JavaScript sources similar to CSS Isolation. But IJSObjectReference can do so much more than just isolation. ...