-
Notifications
You must be signed in to change notification settings - Fork 9
Open
Labels
Description
Docs: https://learn.microsoft.com/en-us/dotnet/csharp/whats-new/csharp-14#extension-members
This was started in 5c8214b. But it's incomplete as the extension members are not yet tied to their extended type so it's currently only possible to call such members through the type that includes the extension (ie. Person_Extensions in the managed sample).
Points of interest:
- https://github.com/royalapplications/beyondnet/blob/main/Generator/Beyond.NET.CodeGenerator/Collectors/MemberCollector.cs#L166
- https://github.com/royalapplications/beyondnet/blob/main/Generator/Beyond.NET.CodeGenerator/Collectors/TypeCollector.cs#L398
- https://github.com/royalapplications/beyondnet/blob/main/Generator/Beyond.NET.CodeGenerator/Syntax/State.cs#L139
- https://github.com/royalapplications/beyondnet/blob/main/Samples/Beyond.NET.Sample.Managed/Source/Person_Extensions.cs#L23
- https://github.com/royalapplications/beyondnet/blob/main/Samples/Beyond.NET.Sample.Swift/Tests/TestClasses/PersonTests.swift#L338