Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
dzmitry-lahoda opened this issue Sep 13, 2020 · 3 comments
Open

Comments

@dzmitry-lahoda
Copy link

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
Copy link
Author

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

@reegeek
Copy link
Owner

reegeek commented Sep 14, 2020

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

Regards.

@dzmitry-lahoda
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants