{"id":33242405,"url":"https://github.com/wieslawsoltes/csharp14demos","last_synced_at":"2025-11-18T22:01:09.523Z","repository":{"id":324074274,"uuid":"1095237385","full_name":"wieslawsoltes/Csharp14Demos","owner":"wieslawsoltes","description":"C# 14 Feature Samples","archived":false,"fork":false,"pushed_at":"2025-11-13T16:19:45.000Z","size":83,"stargazers_count":6,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-11-13T18:15:42.752Z","etag":null,"topics":["csharp","dotnet"],"latest_commit_sha":null,"homepage":"","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/wieslawsoltes.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-11-12T19:24:34.000Z","updated_at":"2025-11-13T17:33:34.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/wieslawsoltes/Csharp14Demos","commit_stats":null,"previous_names":["wieslawsoltes/csharp14demos"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/wieslawsoltes/Csharp14Demos","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wieslawsoltes%2FCsharp14Demos","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wieslawsoltes%2FCsharp14Demos/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wieslawsoltes%2FCsharp14Demos/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wieslawsoltes%2FCsharp14Demos/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wieslawsoltes","download_url":"https://codeload.github.com/wieslawsoltes/Csharp14Demos/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wieslawsoltes%2FCsharp14Demos/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":284767947,"owners_count":27060132,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-11-16T02:00:05.974Z","response_time":65,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["csharp","dotnet"],"created_at":"2025-11-16T20:01:21.843Z","updated_at":"2025-11-16T20:01:59.990Z","avatar_url":"https://github.com/wieslawsoltes.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# C# 14 Feature Samples\n\nThis console application demonstrates the headline features introduced with C# 14 and .NET 10.  \nEach sample is isolated in its own `IFeatureDemo` implementation under `Features/` and is wired up by `Program.cs` so you can see the feature in action alongside explanatory console output.\n\n## Prerequisites\n\n- .NET SDK 10.0 or newer\n\nThe project pins `LangVersion` to 14.0 in the `.csproj`, so the compiler enables the preview syntax required for these scenarios.\n\n## Running the samples\n\n```bash\ndotnet run --project Csharp14FeatureSamples/Csharp14FeatureSamples.csproj\n```\n\n## Feature index\n\n| Feature | Demo file | Documentation |\n| --- | --- | --- |\n| Extension members | `Features/ExtensionMembersDemo.cs` | [What's new in C# 14 – Extension members](https://learn.microsoft.com/en-us/dotnet/csharp/whats-new/csharp-14#extension-members) |\n| `field` backed properties | `Features/FieldKeywordDemo.cs` | [What's new in C# 14 – The field keyword](https://learn.microsoft.com/en-us/dotnet/csharp/whats-new/csharp-14#the-field-keyword) |\n| Implicit span conversions | `Features/ImplicitSpanConversionsDemo.cs` | [What's new in C# 14 – Implicit span conversions](https://learn.microsoft.com/en-us/dotnet/csharp/whats-new/csharp-14#implicit-span-conversions) |\n| `nameof` with unbound generics | `Features/NameOfUnboundGenericDemo.cs` | [What's new in C# 14 – Unbound generic types and nameof](https://learn.microsoft.com/en-us/dotnet/csharp/whats-new/csharp-14#unbound-generic-types-and-nameof) |\n| Lambda parameter modifiers | `Features/SimpleLambdaModifiersDemo.cs` | [What's new in C# 14 – Simple lambda parameters with modifiers](https://learn.microsoft.com/en-us/dotnet/csharp/whats-new/csharp-14#simple-lambda-parameters-with-modifiers) |\n| Partial constructors and events | `Features/PartialMembersDemo.cs` | [What's new in C# 14 – More partial members](https://learn.microsoft.com/en-us/dotnet/csharp/whats-new/csharp-14#more-partial-members) |\n| User-defined compound assignment | `Features/UserDefinedCompoundAssignmentDemo.cs` | [What's new in C# 14 – User defined compound assignment](https://learn.microsoft.com/en-us/dotnet/csharp/whats-new/csharp-14#user-defined-compound-assignment) |\n| Null-conditional assignment | `Features/NullConditionalAssignmentDemo.cs` | [What's new in C# 14 – Null-conditional assignment](https://learn.microsoft.com/en-us/dotnet/csharp/whats-new/csharp-14#null-conditional-assignment) |\n\n## Repository layout\n\n- `Csharp14FeatureSamples.csproj` – Project file pinned to .NET 10 with `LangVersion` 14.0.\n- `Program.cs` – Entry point that enumerates and executes each `IFeatureDemo`.\n- `Features/` – Folder containing individual, well-commented samples for every C# 14 feature listed above.\n\nFeel free to open a specific demo file to copy the snippet into your own projects or to experiment further with the new syntax.\n\n## Functional CRM sample\n\nThe repository now also includes a realistic Avalonia desktop application under `FunctionalExtensions.CrmSample/` that exercises the entire `FunctionalExtensions` library across a mini CRM workflow (SQLite persistence, file attachments, HTTP enrichment, background notifications, undo stack powered by continuations, etc.).\n\n```bash\ndotnet run --project FunctionalExtensions.CrmSample/FunctionalExtensions.CrmSample.csproj\n```\n\n\u003e The sample uses .NET 10 preview + C# 14, so be sure to install the matching SDK referenced in `global.json`.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwieslawsoltes%2Fcsharp14demos","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwieslawsoltes%2Fcsharp14demos","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwieslawsoltes%2Fcsharp14demos/lists"}