mirror of
https://github.com/PacktPublishing/Web-Development-with-Blazor-Second-Edition.git
synced 2026-04-21 06:03:59 +00:00
Initial commit
This commit is contained in:
parent
2190113c56
commit
3088165398
1765 changed files with 192085 additions and 0 deletions
|
|
@ -0,0 +1,16 @@
|
|||
using System.Runtime.InteropServices.JavaScript;
|
||||
using System.Runtime.Versioning;
|
||||
namespace BlazorWebAssembly.Client.JSInteropSamples;
|
||||
|
||||
[SupportedOSPlatform("browser")]
|
||||
public partial class JSToStaticNET
|
||||
{
|
||||
[JSExport]
|
||||
internal static string GetAMessageFromNET()
|
||||
{
|
||||
return "This is a message from .NET";
|
||||
}
|
||||
|
||||
[JSImport("showMessage", "jstonet")]
|
||||
internal static partial void ShowMessage();
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue