-
Notifications
You must be signed in to change notification settings - Fork 25.3k
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
Run .NET from JS article #27311
Run .NET from JS article #27311
Conversation
cc @radical |
I took into account all of the feedback. Check the language translations ... .NET guru to HackRex 🦖 ... for errors. I may have inadvertently broken a few concepts in the process. 🙈 The table will get WCAG updates later ... immediately prior to merging this. For now, we can look at the simple layout on the PR to troubleshoot it further. If I add the WCAG bits now, it will be much harder to read on the diff and update. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looking really good! Just a few more changes.
Co-authored-by: Daniel Roth <[email protected]>
Updates made. Since the module filename doesn't seem to be an important concept here, I 🔪 that out of the coverage. Now, this focuses on the module name ( NOTE TO SELF: 🎗️ Don't forget to WCAG the table before merging! 🎗️ |
Updates made.
NOTE TO SELF 🦖: 🎗️ Don't forget to WCAG the table before merging! 🎗️ |
@pavelsavara @guardrex I also think that some information in the quoted text above may be further clarified. May I propose changing to the following?
I have add a point to explictly state that marshalling an array creates a copy of the array, and therefore the code below will not work as intended: [JSExport]
// This method will not actually modify the array in JS, as a copy of it is passed to .NET during marshalling
static void ModifyArrayFromJS(string[] message) {
message[0] = "Override";
Console.WriteLine(String.Join(',', message));
} I have deleted |
Co-authored-by: Franklin Tse <[email protected]>
@danroth27 ... WRT naming/titling: In this part of the ToC (client-side development), we don't need to distinguish this interop from an existing JS interop (i.e., I made a change on the last commit to see how things might compose. What do you think about ...
... is that too distinct from 'JS interop', such that it would cause confusion? If so, we could just drop the 'import-export' language and go with something like ...
Either way, I still propose that we maintain the formal technology name in the articles' guidance as JavaScript (JS) NOTE TO SELF: 🎗️ Don't forget to WCAG the table before merging! 🎗️ |
Looks good to me.
That's fine. It's a bit wordy, but I think it's workable for now. I'll let you know if I come up with something cleaner.
We still expect to steer Blazor users to |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🎉One more quick pass on Wednesday morning, and I'll merge this and take it live. NOTE TO SELF: |
Fixes #27016
Addresses #26364
Internal Review Topic