Here's an example with Add delegate from earlier with Microsoft ASP.NET Core DI. serviceCollection.AddSingleton<Add>((a, b) => a + b);.
確定! 回上一頁