Skip to main content
edited tags
Link
Qwertie
  • 17.4k
  • 22
  • 115
  • 154
deleted 7 characters in body
Source Link
Qwertie
  • 17.4k
  • 22
  • 115
  • 154
[SupportedOSPlatform("browser")] // suppress CA1416 '...' is only"only supported on: 'browser''browser'"
public static partial class Code
{
    [JSExport]
    public static string NameOf([JSMarshalAs<JSType.Any>] object entity)
        => ((IHasName)entity).Name;
}
[SupportedOSPlatform("browser")] // suppress CA1416 '...' is only supported on: 'browser'
public static partial class Code
{
    [JSExport]
    public static string NameOf([JSMarshalAs<JSType.Any>] object entity)
        => ((IHasName)entity).Name;
}
[SupportedOSPlatform("browser")] // suppress CA1416 "only supported on: 'browser'"
public static partial class Code
{
    [JSExport]
    public static string NameOf([JSMarshalAs<JSType.Any>] object entity)
        => ((IHasName)entity).Name;
}
added 167 characters in body
Source Link
Qwertie
  • 17.4k
  • 22
  • 115
  • 154

Note: this is not a Blazor app, but AFAICT Microsoft didn't give a name to its .NET-in-WebAssembly system. If you're reading this Microsoft, please give your system a name so that people can discuss it properly. I see "blazor" in the error message above, but Blazor is a UI-in-C# system and I'm not doing any UI work in C#.

Note: this is not a Blazor app, but AFAICT Microsoft didn't give a name to its .NET-in-WebAssembly system. If you're reading this Microsoft, please give your system a name so that people can discuss it properly. I see "blazor" in the error message above, but Blazor is a UI-in-C# system and I'm not doing any UI work in C#.

Source Link
Qwertie
  • 17.4k
  • 22
  • 115
  • 154
Loading