How to add a Partial Class to a component in Blazor in Visual Studio 2019?
问题 I'm not finding where should I click to create a partial class in visual studio 2019. After I create a new "Razor Component" file, I can't add the partial class to it. Where do I add it? 回答1: Something like this? : - razor page with "code-behind" class 回答2: There are two ways to add code behind to Razor component: Add Base class and in component add @inherits this class, how is described in this answer. In this case base class shouldn't be partial. Since October 2019 we can use partial