StructLinq icon indicating copy to clipboard operation
StructLinq copied to clipboard

target C# 9 with func pointers (it can still compile into old CLR)

Open dzmitry-lahoda opened this issue 3 years ago • 3 comments

image I think you can use inline static methods with function pointers and it will avoid boilerplate of creating classes as C# does not have inline classes.

dzmitry-lahoda avatar Sep 13 '20 08:09 dzmitry-lahoda

it is part of C# as per notes https://docs.microsoft.com/en-us/dotnet/csharp/whats-new/csharp-9

dzmitry-lahoda avatar Sep 13 '20 08:09 dzmitry-lahoda

hi, thank for your remark, do you have some example where func pointers are faster than delegate or "Struct specialization" ?

Regards.

reegeek avatar Sep 14 '20 07:09 reegeek

not faster, but probably same. but these could be nicer in API

dzmitry-lahoda avatar Sep 14 '20 07:09 dzmitry-lahoda