mirror of
https://github.com/PacktPublishing/Web-Development-with-Blazor-Second-Edition.git
synced 2025-12-06 05:32:03 +01:00
14 lines
271 B
C#
14 lines
271 B
C#
namespace BlazorWebAssemblyApp.InterfaceGeneratorDemo;
|
|
using InterfaceGenerator;
|
|
|
|
[GenerateAutoInterface]
|
|
public class SampleService: ISampleService
|
|
{
|
|
public double Multiply(double x, double y)
|
|
{
|
|
return x * y;
|
|
}
|
|
|
|
public int NiceNumber => 69;
|
|
}
|